mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-01 16:14:21 -05:00
* Remove slim * bug: opacity issues * bug: startup failure with no database * ci/cd on dev branch * formatting * v0.1.0 documentation Co-authored-by: Hayden <hay-kot@pm.me>
34 lines
834 B
Docker
34 lines
834 B
Docker
FROM node:lts-alpine as build-stage
|
|
WORKDIR /app
|
|
COPY ./frontend/package*.json ./
|
|
RUN npm install
|
|
COPY ./frontend/ .
|
|
RUN npm run build
|
|
|
|
FROM mrnr91/uvicorn-gunicorn-fastapi:python3.8
|
|
|
|
|
|
COPY ./requirements.txt /app/requirements.txt
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update -y && \
|
|
apt-get install -y python-pip python-dev git curl --no-install-recommends
|
|
|
|
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 ./app/poetry.lock* /app/
|
|
|
|
COPY ./mealie /app
|
|
RUN poetry install --no-root --no-dev
|
|
COPY --from=build-stage /app/dist /app/dist
|
|
RUN rm -rf /app/test /app/.temp
|
|
|
|
ENV ENV prod
|
|
ENV APP_MODULE "app:app"
|
|
|
|
VOLUME [ "/app/data" ]
|