Build the front end
This commit is contained in:
parent
013c007bb0
commit
2e4456a338
1 changed files with 10 additions and 0 deletions
10
Dockerfile
10
Dockerfile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue