Use pip-tools to manage dependencies

This commit is contained in:
Sonny Bakker 2022-05-26 11:12:22 +02:00
parent 53aa8da2dd
commit 20309e70fa
8 changed files with 275 additions and 1369 deletions

View file

@ -1,10 +1,10 @@
FROM python:3.7-buster
RUN pip install poetry
FROM python:3.9-bullseye
WORKDIR /app
COPY poetry.lock pyproject.toml /app/
RUN mkdir /app/src
RUN poetry config virtualenvs.create false && poetry install --no-interaction --extras sentry
COPY ./requirements /app/requirements
COPY . /app/
RUN pip install -r requirements/production.txt -r requirements/development.txt
COPY ./src /app/src