migrate to poetry for development

This commit is contained in:
Hayden 2021-01-16 09:07:22 -09:00
commit 7214c96fd1

View file

@ -3,13 +3,16 @@ FROM python:3
RUN apt-get update -y && \ RUN apt-get update -y && \
apt-get install -y python-pip python-dev apt-get install -y python-pip python-dev
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 ./requirements.txt /app/requirements.txt COPY ./pyproject.toml ./app/poetry.lock* /app/
WORKDIR /app WORKDIR /app
RUN pip install -r requirements.txt RUN poetry install --no-root
RUN pip install pytest
COPY ./mealie /app COPY ./mealie /app