No poetry in prod

This commit is contained in:
2023-08-19 16:43:48 +02:00
parent 6eb8cdfa75
commit 0c78051f7f
3 changed files with 223 additions and 215 deletions

View File

@@ -1,15 +1,9 @@
FROM docker.io/python:3.9-alpine AS base
FROM docker.io/python:3.11-alpine AS base
WORKDIR /app
ENV POETRY_PATH=/opt/poerty \
PATH="/opt/poerty:${PATH}"
RUN apk add --no-cache --virtual .build-deps build-base curl libffi-dev \
&& curl -sSL https://install.python-poetry.org | python3 - \
&& apk del .build-deps
ADD pyproject.toml poetry.lock ./
RUN poetry install --no-dev
ADD requirements.txt ./
RUN pip3 install -r requirements.txt
FROM base as dev