mirror of
https://github.com/Floriansylvain/ParisMuseesQuizz.git
synced 2026-08-19 19:53:22 +02:00
Production ready
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
FROM node:latest as build-stage
|
||||
WORKDIR /app
|
||||
COPY ./web/package*.json ./
|
||||
COPY ./.env ./
|
||||
RUN npm ci
|
||||
COPY ./web/ .
|
||||
RUN npm run build
|
||||
|
||||
FROM nginx as production-stage
|
||||
RUN mkdir /app
|
||||
COPY --from=build-stage /app/dist /app
|
||||
COPY ./web/nginx.conf /etc/nginx/nginx.conf
|
||||
Reference in New Issue
Block a user