2a158ab290
* rename 'ENV' to 'PRODUCTION' and default to true * set env PRODUCTION * refactor file download process * add last_recipe.json and log downloads * changelog + version bump * set env on workflows * bump version Co-authored-by: hay-kot <hay-kot@pm.me>
24 lines
582 B
Text
24 lines
582 B
Text
FROM python:3
|
|
|
|
WORKDIR /app/
|
|
|
|
ENV PRODUCTION false
|
|
|
|
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"]
|