mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 06:23:34 -07:00
fix build
This commit is contained in:
parent
e884eb1762
commit
2d4a06762a
2 changed files with 0 additions and 34 deletions
|
@ -17,7 +17,6 @@ COPY ./pyproject.toml /app/
|
||||||
RUN apk add --update --no-cache --virtual .build-deps \
|
RUN apk add --update --no-cache --virtual .build-deps \
|
||||||
curl \
|
curl \
|
||||||
g++ \
|
g++ \
|
||||||
py-lxml \
|
|
||||||
python3-dev \
|
python3-dev \
|
||||||
musl-dev \
|
musl-dev \
|
||||||
gcc \
|
gcc \
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
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" ]
|
|
Loading…
Add table
Add a link
Reference in a new issue