2025SELab2-project-Dwengo/frontend/Dockerfile
2025-03-07 16:45:42 +01:00

13 lines
No EOL
278 B
Docker

# build stage
FROM node:22 as build-stage
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
# production stage
FROM nginx:stable as production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]