Skip to content

Commit bde42d3

Browse files
committed
build: upgrade Python to 3.11 and distroless to debian12 for security and performance
1 parent 4bf2686 commit bde42d3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
FROM python:3.9-slim as builder
2+
FROM python:3.11-slim as builder
33

44
RUN pip install uv
55

@@ -16,13 +16,11 @@ COPY requirements.txt .
1616
RUN uv pip install -r requirements.txt
1717

1818

19-
FROM gcr.io/distroless/python3-debian11
20-
19+
FROM gcr.io/distroless/python3-debian12
2120

2221
WORKDIR /app
2322

24-
25-
COPY --from=builder /usr/local/lib/python3.9/site-packages /app/packages
23+
COPY --from=builder /usr/local/lib/python3.11/site-packages /app/packages
2624

2725

2826
COPY . .

0 commit comments

Comments
 (0)