mirror of
https://github.com/Floriansylvain/ParisMuseesQuizz.git
synced 2026-08-19 19:53:22 +02:00
13 lines
261 B
Docker
13 lines
261 B
Docker
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
|