updated
This commit is contained in:
		
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							| @@ -3,15 +3,15 @@ FROM node:18-alpine | ||||
| WORKDIR /app | ||||
|  | ||||
| COPY package.json . | ||||
|  | ||||
| RUN npm install | ||||
| RUN npm install -g serve | ||||
|  | ||||
| RUN npm i -g serve | ||||
|  | ||||
| COPY . . | ||||
| RUN npm run build | ||||
|  | ||||
| COPY --from=build /app/dist ./dist | ||||
| RUN npm run build | ||||
|  | ||||
| EXPOSE 3000 | ||||
|  | ||||
| # Serve the static files after building | ||||
| CMD ["serve", "-s", "dist", "-l", "3000"] | ||||
| CMD [ "serve", "-s", "dist" ] | ||||
		Reference in New Issue
	
	Block a user