mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-02-23 10:27:23 -08:00
21 lines
474 B
Docker
21 lines
474 B
Docker
FROM python:3
|
|
|
|
RUN apt-get update -y && \
|
|
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 ./pyproject.toml ./poetry.lock* /app/
|
|
|
|
WORKDIR /app
|
|
|
|
RUN poetry install --no-root
|
|
|
|
COPY ./mealie /app
|
|
|
|
ENTRYPOINT [ "python" ]
|
|
|
|
CMD [ "app.py" ] |