forked from mirrors/amnezia-wg-easy
		
	Dockerfile: in npm 8.x and above use --omit=dev flag
This commit is contained in:
		
							parent
							
								
									e2f58b878d
								
							
						
					
					
						commit
						521df75463
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -6,7 +6,7 @@ FROM docker.io/library/node:18-alpine@sha256:435dcad253bb5b7f347ebc69c8cc52de7c9
 | 
			
		|||
# Copy Web UI
 | 
			
		||||
COPY src/ /app/
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
RUN npm config set fund false && npm ci --production
 | 
			
		||||
RUN npm config set fund false && npm ci --omit=dev
 | 
			
		||||
 | 
			
		||||
# Copy build result to a new image.
 | 
			
		||||
# This saves a lot of disk space.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue