Skip to content

Commit 8e9b394

Browse files
committed
fix: use debian instead of alpine
1 parent cd78c93 commit 8e9b394

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
FROM python:3.12-alpine3.20 AS builder
1+
FROM python:3.12-slim AS builder
22

33
ENV PYTHONDONTWRITEBYTECODE=1
44
ENV PYTHONUNBUFFERED=1
55

6-
RUN apk update && apk upgrade --no-cache libcrypto3 libssl3
7-
RUN apk add --no-cache alpine-sdk linux-headers
86
RUN pip install --no-cache-dir "poetry==1.8.5"
97
RUN python3 -m venv /opt/venv
108

@@ -19,7 +17,7 @@ FROM builder AS test
1917
RUN poetry install --with test
2018
RUN poetry run pytest ./tests
2119

22-
FROM python:3.12-alpine3.20
20+
FROM python:3.12-slim
2321

2422
ENV PYTHONDONTWRITEBYTECODE=1
2523
ENV PYTHONUNBUFFERED=1

0 commit comments

Comments
 (0)