2020-12-24 16:37:38 -09:00
|
|
|
FROM python:3
|
|
|
|
|
|
|
|
|
|
RUN apt-get update -y && \
|
|
|
|
|
apt-get install -y python-pip python-dev
|
|
|
|
|
|
2021-01-16 09:32:55 -09:00
|
|
|
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
|
2021-01-17 10:53:42 -09:00
|
|
|
|
|
|
|
|
RUN mkdir /app/
|
2021-01-16 09:32:55 -09:00
|
|
|
COPY ./pyproject.toml ./app/poetry.lock* /app/
|
2020-12-24 16:37:38 -09:00
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2021-01-16 09:32:55 -09:00
|
|
|
RUN poetry install --no-root
|
2020-12-24 16:37:38 -09:00
|
|
|
|
2021-01-05 13:16:13 +01:00
|
|
|
COPY ./mealie /app
|
2020-12-24 16:37:38 -09:00
|
|
|
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT [ "python" ]
|
|
|
|
|
|
2021-01-05 19:13:37 +01:00
|
|
|
CMD [ "app.py" ]
|