mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
chore: use poetry as the backend package manager
This commit is contained in:
parent
c64af92eba
commit
f96540ea25
4 changed files with 4476 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue