chore: use poetry as the backend package manager

This commit is contained in:
swve 2024-01-11 22:59:00 +01:00
parent c64af92eba
commit f96540ea25
4 changed files with 4476 additions and 2 deletions

View file

@ -1,6 +1,9 @@
#
FROM python:3.11
# poetry
RUN pip install poetry
#
WORKDIR /usr/learnhouse/apps/api
@ -8,7 +11,9 @@ WORKDIR /usr/learnhouse/apps/api
COPY ./requirements.txt /usr/learnhouse/requirements.txt
#
RUN pip install --no-cache-dir --upgrade -r /usr/learnhouse/requirements.txt
RUN poetry config virtualenvs.create false \
&& pip install --upgrade pip \
&& pip install -r /usr/learnhouse/requirements.txt
#
COPY ./ /usr/learnhouse