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 6918f45e34 chore: nginx configuratie toegevoed
nginx geconfigureerd en via docker gekopiëerd, SSL ingesteld en volume voor gemaakt in docker compose zodat de certificates op de server gevonden worden door docker
2025-03-09 22:30:43 +01:00

17 lines
No EOL
408 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 ./nginx/nginx.conf /etc/nginx/
COPY --from=build-stage /app/frontend/dist /usr/share/nginx/html
EXPOSE 80
EXPOSE 443
CMD ["nginx", "-g", "daemon off;"]