mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-10-27 08:14:30 -04:00
25 lines
685 B
Docker
25 lines
685 B
Docker
FROM python:3
|
|
|
|
WORKDIR /app/
|
|
|
|
RUN apt-get update -y && \
|
|
apt-get install -y python-pip python-dev
|
|
|
|
# Install Poetry
|
|
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 poetry.lock* in case it doesn't exist in the repo
|
|
COPY ./pyproject.toml /app/
|
|
|
|
# RUN poetry install
|
|
|
|
COPY ./mealie /app/mealie
|
|
|
|
RUN poetry install
|
|
|
|
RUN ["poetry", "run", "python", "mealie/db/init_db.py"]
|
|
RUN ["poetry", "run", "python", "mealie/services/image/minify.py"]
|
|
CMD ["poetry", "run", "python", "mealie/app.py"] |