mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Add files for creating docker image
* Base on a small node image (alpine-node) * Exclude some files from docker build to make the build go faster
This commit is contained in:
		
							parent
							
								
									c9ffd81b2d
								
							
						
					
					
						commit
						4854ca58e7
					
				
							
								
								
									
										5
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								.dockerignore
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					.git
 | 
				
			||||||
 | 
					docker-compose.yml
 | 
				
			||||||
 | 
					node_modules
 | 
				
			||||||
 | 
					artifact.json
 | 
				
			||||||
 | 
					finnbuild.json
 | 
				
			||||||
							
								
								
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
				
			|||||||
 | 
					FROM mhart/alpine-node:0.10.38
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					COPY . .
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN npm install --production && \
 | 
				
			||||||
 | 
					    npm run build
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					EXPOSE 4242
 | 
				
			||||||
 | 
					ENTRYPOINT ["npm"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					CMD ["start"]
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user