Skip to content

Commit d9ab397

Browse files
Kyu-seokclaude
andauthored
infra: build prod images without provenance, so cached builds keep ids (#347)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 2847298 commit d9ab397

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

‎infra/docker-compose.prod.yml‎

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ services:
7171
build:
7272
context: ..
7373
dockerfile: backend/Dockerfile
74+
# No provenance attestation: BuildKit stamps a new one on every build, which gives a fully
75+
# cached image a new id, so scripts/deploy-prod.sh would roll unchanged code and compose would
76+
# recreate unchanged services.
77+
provenance: false
7478
image: codebite-backend
7579
restart: unless-stopped
7680
deploy:
@@ -116,6 +120,10 @@ services:
116120
build:
117121
context: ..
118122
dockerfile: worker/Dockerfile
123+
# No provenance attestation: BuildKit stamps a new one on every build, which gives a fully
124+
# cached image a new id, so scripts/deploy-prod.sh would roll unchanged code and compose would
125+
# recreate unchanged services.
126+
provenance: false
119127
image: codebite-worker
120128
restart: unless-stopped
121129
stop_grace_period: 30s
@@ -141,7 +149,12 @@ services:
141149
- codebite
142150

143151
nginx:
144-
build: ../frontend
152+
build:
153+
context: ../frontend
154+
# No provenance attestation: BuildKit stamps a new one on every build, which gives a fully
155+
# cached image a new id, so scripts/deploy-prod.sh would roll unchanged code and compose would
156+
# recreate unchanged services.
157+
provenance: false
145158
image: codebite-nginx
146159
container_name: codebite-nginx
147160
restart: unless-stopped

0 commit comments

Comments
 (0)