mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-02 00:24:13 -05:00
* migration redesign init * new color picker * changelog * added UI language selection * fix layout issue on recipe editor * remove git as dependency * added UI editor for original URL * CI/CD Tests * test: fixed migration routes * test todos * bug/added docker volume * chowdow test data * partial image recipe image testing * added card section card * settings form * homepage cetegory ui * frontend category placeholder * fixed broken scheduler * remove old files * removed temp test Co-authored-by: Hayden <hay-kot@pm.me>
39 lines
951 B
Docker
39 lines
951 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 python:3.8-alpine
|
|
|
|
RUN apk add --no-cache libxml2-dev libxslt-dev libxml2
|
|
ENV ENV prod
|
|
EXPOSE 80
|
|
WORKDIR /app
|
|
|
|
COPY ./pyproject.toml /app/
|
|
|
|
RUN apk add --update --no-cache --virtual .build-deps \
|
|
curl \
|
|
g++ \
|
|
py-lxml \
|
|
python3-dev \
|
|
musl-dev \
|
|
gcc \
|
|
build-base && \
|
|
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 && \
|
|
cd /app/ && poetry install --no-root --no-dev && \
|
|
apk --purge del .build-deps
|
|
|
|
|
|
COPY ./mealie /app
|
|
COPY --from=build-stage /app/dist /app/dist
|
|
RUN rm -rf /app/test /app/.temp
|
|
|
|
|
|
VOLUME [ "/app_data/" ]
|
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"] |