 6918f45e34
			
		
	
	
		6918f45e34
		
	
	
	
	
		
			
			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
		
			
				
	
	
		
			17 lines
		
	
	
		
			No EOL
		
	
	
		
			408 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			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;"] |