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 8890542f5e chore: docker container layout aangepast
De mappen zitten een laag dieper in de docker container zodat de MenuBar.vue code niet moest aangepast worden
2025-03-07 17:29:22 +01:00

15 lines
No EOL
361 B
Docker

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