feat: docker compose maybe
This commit is contained in:
		
							
								
								
									
										17
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
FROM node:19-buster-slim
 | 
			
		||||
 | 
			
		||||
# Install node dependencies
 | 
			
		||||
WORKDIR /svelte
 | 
			
		||||
COPY ./package.json .
 | 
			
		||||
COPY ./svelte.config.js .
 | 
			
		||||
RUN npm install
 | 
			
		||||
 | 
			
		||||
# Move to container
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
# Build for production
 | 
			
		||||
RUN npm run build
 | 
			
		||||
 | 
			
		||||
# Launch app
 | 
			
		||||
CMD ["node", "build"]
 | 
			
		||||
EXPOSE 3000
 | 
			
		||||
		Reference in New Issue
	
	Block a user