No poetry in prod
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user