Browse Source
			
			
			Merge pull request #273 from duzun/patch-1
			
				Dockerfile: Avoid keeping npm in RAM
			
			
				pull/283/head
			
			
		 
		
			
				
					
						
						Louis Lam
					
					4 years ago
					
						
							committed by
							
								
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					dockerfile
				
 
			
		
		
			
			
			
			
			
			
				
				
					
						
							
								
									
	
		
			
				
					| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -22,7 +22,7 @@ RUN npm install && npm run build && npm prune | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					EXPOSE 3001 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					VOLUME ["/app/data"] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					HEALTHCHECK --interval=60s --timeout=30s --start-period=300s CMD node extra/healthcheck.js | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					CMD ["npm", "run", "start-server"] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					CMD ["node", "server/server.js"] | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					FROM release AS nightly | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					RUN npm run mark-as-nightly | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
					 | 
				
				 | 
				
					
  |