Skip to content

Commit b42d661

Browse files
committed
fix: pin python base image to bookworm for reproducible builds
Pin to python:3.12-slim-bookworm to prevent silent OS upgrade when Debian Trixie becomes the default slim tag. Confidence: high Scope-risk: narrow
1 parent e1ce981 commit b42d661

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
22

33
exports[`Dockerfile enableOtel rendering > renders opentelemetry-instrument CMD when enableOtel is true > Dockerfile-enableOtel-true 1`] = `
4-
"FROM public.ecr.aws/docker/library/python:3.12-slim
4+
"FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm
55
66
RUN pip install --no-cache-dir uv==0.11.14
77
@@ -41,7 +41,7 @@ CMD ["opentelemetry-instrument", "python", "-m", "main"]
4141
`;
4242

4343
exports[`Dockerfile enableOtel rendering > renders plain python CMD when enableOtel is false > Dockerfile-enableOtel-false 1`] = `
44-
"FROM public.ecr.aws/docker/library/python:3.12-slim
44+
"FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm
4545
4646
RUN pip install --no-cache-dir uv==0.11.14
4747

src/assets/container/python/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM public.ecr.aws/docker/library/python:3.12-slim
1+
FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm
22

33
RUN pip install --no-cache-dir uv==0.11.14
44

src/cli/commands/import/actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export async function handleImport(options: ImportOptions): Promise<ImportResult
383383
fs.writeFileSync(
384384
destDockerfile,
385385
[
386-
'FROM public.ecr.aws/docker/library/python:3.12-slim',
386+
'FROM public.ecr.aws/docker/library/python:3.12-slim-bookworm',
387387
'RUN pip install --no-cache-dir uv==0.11.14',
388388
'WORKDIR /app',
389389
'',

0 commit comments

Comments
 (0)