File tree Expand file tree Collapse file tree 1 file changed +7
-21
lines changed
Expand file tree Collapse file tree 1 file changed +7
-21
lines changed Original file line number Diff line number Diff line change 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
52WORKDIR /de-denker
63
4+ FROM base AS requirements
5+ RUN pip install poetry-plugin-export
76COPY pyproject.toml poetry.lock ./
8-
97RUN 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
1311ENV PYTHONDONTWRITEBYTECODE=1
14-
15- WORKDIR /de-denker
16-
17- RUN apk add build-base
18-
1912COPY --from=requirements /de-denker/requirements.txt .
20-
2113RUN 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++
2917COPY --from=build /usr/local/lib/python3.13/site-packages /usr/local/lib/python3.13/site-packages
3018COPY --from=build /usr/local/bin /usr/local/bin
31-
3219COPY config.py main.py models.py static_probabilities.py telraam_api.py ./
33-
3420CMD ["python" , "main.py" ]
You can’t perform that action at this time.
0 commit comments