mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-06 10:25:18 -05:00
* Fix docker dev db persistence * Make run.sh the only startup script for prod + dev Credits to @hay-kot for run.sh script logic * Restore dev backend initialization in non-docker setup * Make run.sh POSIX-friendly * Allow dev backend to auto-reload in Docker
23 lines
553 B
Docker
23 lines
553 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/
|
|
|
|
COPY ./mealie /app/mealie
|
|
|
|
RUN poetry install
|
|
|
|
RUN chmod +x /app/mealie/run.sh
|
|
CMD /app/mealie/run.sh reload
|