mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
migrate to poetry for development
This commit is contained in:
parent
710e54f4cc
commit
7214c96fd1
1 changed files with 7 additions and 4 deletions
|
@ -3,13 +3,16 @@ FROM python:3
|
|||
RUN apt-get update -y && \
|
||||
apt-get install -y python-pip python-dev
|
||||
|
||||
|
||||
COPY ./requirements.txt /app/requirements.txt
|
||||
RUN curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | POETRY_HOME=/opt/poetry python && \
|
||||
cd /usr/local/bin && \
|
||||
ln -s /opt/poetry/bin/poetry && \
|
||||
poetry config virtualenvs.create false
|
||||
|
||||
COPY ./pyproject.toml ./app/poetry.lock* /app/
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install pytest
|
||||
RUN poetry install --no-root
|
||||
|
||||
COPY ./mealie /app
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue