Skip to content

Commit 16958cf

Browse files
committed
Use non-dev version of libstdc++ (+ Dockerfile formatting)
1 parent 9418b0a commit 16958cf

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

Dockerfile

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,20 @@
1-
FROM python:3.13.2-alpine3.21 AS requirements
2-
3-
RUN pip install poetry-plugin-export
4-
1+
FROM python:3.13.2-alpine3.21 AS base
52
WORKDIR /de-denker
63

4+
FROM base AS requirements
5+
RUN pip install poetry-plugin-export
76
COPY pyproject.toml poetry.lock ./
8-
97
RUN poetry export --without-hashes --format=requirements.txt > requirements.txt
108

11-
FROM python:3.13.2-alpine3.21 AS build
12-
9+
FROM base AS build
10+
RUN apk add --no-cache build-base
1311
ENV PYTHONDONTWRITEBYTECODE=1
14-
15-
WORKDIR /de-denker
16-
17-
RUN apk add build-base
18-
1912
COPY --from=requirements /de-denker/requirements.txt .
20-
2113
RUN pip install -r requirements.txt
2214

23-
FROM python:3.13.2-alpine3.21
24-
25-
WORKDIR /de-denker
26-
27-
RUN apk add --no-cache libgomp libstdc++-dev
28-
15+
FROM base AS artifact
16+
RUN apk add --no-cache libgomp libstdc++
2917
COPY --from=build /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
3018
COPY --from=build /usr/local/bin /usr/local/bin
31-
3219
COPY config.py main.py models.py static_probabilities.py telraam_api.py ./
33-
3420
CMD ["python", "main.py"]

0 commit comments

Comments
 (0)