Skip to content

Commit 0d514d2

Browse files
committed
docs: add Docker image guidelines to CLAUDE.md
Document the requirement to use multiplatform/index digests instead of architecture-specific digests when updating Docker images.
1 parent 65599c3 commit 0d514d2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CLAUDE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ For testable code, **never import env.server.ts** in test files. Pass configurat
133133

134134
The codebase is transitioning from the "legacy run engine" (spread across codebase) to "Run Engine 2.0" (`@internal/run-engine`). Focus on Run Engine 2.0 for new work.
135135

136+
## Docker Image Guidelines
137+
138+
When updating Docker image references in `docker/Dockerfile` or other container files:
139+
140+
- **Always use multiplatform/index digests**, not architecture-specific digests
141+
- Architecture-specific digests (e.g., for `linux/amd64` only) will cause CI failures on different build environments
142+
- On Docker Hub, the multiplatform digest is shown on the main image page, while architecture-specific digests are listed under "OS/ARCH"
143+
- Example: Use `node:20.20-bullseye-slim@sha256:abc123...` where the digest is from the multiplatform index, not from a specific OS/ARCH variant
144+
136145
## Database Migrations (PostgreSQL)
137146

138147
1. Edit `internal-packages/database/prisma/schema.prisma`

0 commit comments

Comments
 (0)