13 lines
		
	
	
		
			No EOL
		
	
	
		
			298 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			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;"] | 
