depot-container-builds
하는 일
이 스킬은 로컬 Docker 대신 Depot으로 컨테이너 이미지를 빌드하는 과정을 AI 에이전트에게 안내합니다. 앱을 Docker 이미지로 패키징하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Depot 원격 빌더에서 Docker 이미지를 빌드해야 할 때.
- ✓Intel과 ARM 컴퓨터 모두에서 쓸 수 있는 이미지를 하나 만들고 싶을 때.
- ✓컨테이너 빌드가 실패해서 수정하거나 캐시 속도를 높여야 할 때.
스킬 링크
https://github.com/PostHog/posthog/blob/master/.agents/skills/depot-container-builds/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Intel과 ARM 칩 모두를 위해 Depot으로 제 앱의 Docker 이미지를 빌드하고, 제 레지스트리에 푸시해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 평소 Docker 빌드 명령 대신 Depot의 빌드 명령을 사용합니다. 빌드는 자동 캐싱이 되는 원격 머신에서 실행되며, 선택한 옵션에 따라 이미지를 로드, 푸시, 저장할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Depot Container Builds
Depot runs Docker image builds on remote high-performance builders (16 CPU, 32 GB RAM, NVMe SSD cache). depot build is a drop-in replacement for docker build / docker buildx build. depot bake replaces docker buildx bake.
Before you propose a change to CI, check things already tried for the idea. It records what was measured, and why some good-sounding changes were reverted or rejected.
<!-- End PostHog-local section. -->Project Selection for Multi-Org Users
Container build commands target a specific project, not an organization. If expected projects aren't visible or a build unexpectedly prompts to select a project, the current default org may be wrong:
depot org show # Current org ID
depot org list # Orgs the user belongs to
depot org switch <org-id> # Optional: set default org
Key Concepts
- Builds run remotely on ephemeral EC2 instances — images stay in remote cache by default
- Use
--loadto download to local Docker,--pushto push to a registry,--saveto store in Depot's ephemeral registry - Cache is fully automatic on persistent NVMe SSDs — no manual cache config needed
- Multi-platform builds use native CPU builders (no QEMU emulation) for amd64 and arm64 simultaneously
- All team members on a project share the same layer cache
depot build — Essential Patterns
# Build remotely (image stays in remote cache)
depot build -t repo/image:tag .
# Build + download to local Docker daemon
depot build -t repo/image:tag . --load
# Build + push directly to registry (fast — doesn't route through local network)
depot build -t repo/image:tag . --push
# Multi-platform build (native CPUs, no emulation)
depot build --platform linux/amd64,linux/arm64 -t repo/image:tag . --push
# Save to Depot ephemeral registry (7-day default, configurable per repository)
depot build --save .
depot build --save --save-tag my-tag .
# Suppress provenance metadata (fixes "unknown/unknown" platform in registries)
depot build -t repo/image:tag --push --provenance=false .
# Lint Dockerfile before building
depot build -t repo/image:tag . --lint
# Build with secrets
depot build --secret id=mysecret,src=./secret.txt -t repo/image:tag .
# Build with SSH forwarding
depot build --ssh default -t repo/image:tag .
# Specify a Depot project explicitly
depot build --project <project-id> -t repo/image:tag .
Key Flags
| Flag | Description |
|---|---|
--load |
Download image to local Docker daemon |
--push |
Push to registry |
--save |
Save to Depot ephemeral registry |
--save-tag |
Custom tag for Depot Registry |
--platform |
Target platforms: linux/amd64, linux/arm64 (native, no emulation), plus linux/arm/v6, linux/arm/v7, linux/386 |
--build-platform |
Force build to run on specific arch (dynamic default) |
--project |
Depot project ID |
--token |
Depot API token |
--lint |
Lint Dockerfile before build |
--provenance |
Control provenance attestation (set false to fix unknown/unknown) |
--sbom |
Generate an SBOM attestation (shorthand for --attest type=sbom) |
--sbom-dir |
D |
자주 묻는 질문
docker build를 대체하나요?
네. 스킬은 depot build가 docker build의 드롭인 대체 명령이고, depot bake는 docker buildx bake를 대체한다고 설명합니다.
이미지는 어디에 저장되나요?
선택한 옵션에 따라 로컬 Docker로 로드하거나, 레지스트리에 푸시하거나, Depot 레지스트리에 저장할 수 있습니다.
캐시를 따로 설정해야 하나요?
아니요. 스킬은 Depot 빌더에서 캐싱이 자동으로 이루어진다고 말합니다.
상세 정보
작성자의 원본 설명
Configures and runs Depot remote container builds using `depot build` and `depot bake`. Use when building Docker images, creating Dockerfiles with Depot, pushing images to registries, building multi-platform/multi-arch images (linux/amd64, linux/arm64), debugging container build failures, optimizing Dockerfile layer caching, using docker-bake.hcl or docker-compose builds, or migrating from `docker build` / `docker buildx build` to Depot. Also use when the user mentions depot build, depot bake, container builds, image builds, or asks about Depot's build cache, build parallelism, build autoscali
repo: PostHog/posthog
인기도
- GitHub 스타
- 41k
- 순위
- #6811
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
depot-ci
41k에이전트가 GitHub Actions 대안인 Depot CI 워크플로를 설정하고 실행하도록 돕습니다. 기존 워크플로 이전과 실행 로그 읽기를 포함합니다.
depot-github-runners
41k에이전트가 GitHub Actions 작업을 Depot 관리형 러너로 옮기고, 러너 크기와 라벨을 고르도록 돕습니다.
editing-agents-md
41k에이전트가 규칙을 AGENTS.md나 CLAUDE.md 중 어디에 둘지 정하고, 파일을 키우지 않으면서 잘 지켜지도록 쓰게 돕습니다.
formatting-slack-messages
41k에이전트가 Slack 메시지, 모달, 홈 화면을 Slack의 최신 규칙에 맞춰 명확하게 구성하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.