Build the front end

This commit is contained in:
Daoud Clarke 2023-10-12 20:52:51 +01:00
parent 013c007bb0
commit 2e4456a338

View file

@ -1,3 +1,10 @@
FROM node:hydrogen-bullseye as front-end
COPY front-end /front-end
WORKDIR /front-end
RUN npm install && npm run build
FROM python:3.10.2-bullseye as base
ENV PYTHONFAULTHANDLER=1 \
@ -39,6 +46,9 @@ RUN apt-get update && apt-get install -y postgresql-client
# Copy only the required /venv directory from the builder image that contains mwmbl and its dependencies
COPY --from=builder /venv /venv
# Copy the front end build
COPY --from=front-end /front-end/dist /app/static
ADD nginx.conf.sigil /app
# Set up a volume where the data will live