This repository has been archived on 2025-09-22. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
2025SELab2-project-Dwengo/frontend.Dockerfile
Timo De Meyst 0995cba88c chore: update docker layout
Dockerfiles in root gezet zodat ze ook aan bestanden daarin kunnen
2025-03-07 17:19:30 +01:00

13 lines
No EOL
298 B
Docker

# build stage
FROM node:22 as build-stage
WORKDIR /app
COPY ./frontend/package*.json ./
RUN npm install
COPY ./frontend .
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;"]