Add Dockerfile for Deployment
This commit is contained in:
		
							parent
							
								
									139815acf0
								
							
						
					
					
						commit
						eb4c45f4cf
					
				
							
								
								
									
										12
									
								
								dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					# Build frontend
 | 
				
			||||||
 | 
					FROM oven/bun:1.0.25-alpine as frontend
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					WORKDIR /app/
 | 
				
			||||||
 | 
					COPY ./ ./
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Expose port
 | 
				
			||||||
 | 
					EXPOSE 8080
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Start the app
 | 
				
			||||||
 | 
					ENV NODE_ENV=production
 | 
				
			||||||
 | 
					CMD [ "bun", "run", "./index.js" ]
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user