forked from mirrors/amnezia-wg-easy
		
	Dockerfile: move all npm steps
This commit is contained in:
		
							parent
							
								
									c8224f34f9
								
							
						
					
					
						commit
						6e7f2f730e
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -6,6 +6,8 @@ WORKDIR /app
 | 
			
		|||
RUN npm ci --omit=dev &&\
 | 
			
		||||
    # Enable this to run `npm run serve`
 | 
			
		||||
    npm i -g nodemon &&\
 | 
			
		||||
    # Delete unnecessary files 
 | 
			
		||||
    npm cache clean --force && rm -rf ~/.npm
 | 
			
		||||
    mv node_modules /node_modules
 | 
			
		||||
 | 
			
		||||
# Copy build result to a new image.
 | 
			
		||||
| 
						 | 
				
			
			@ -22,9 +24,6 @@ COPY --from=build_node_modules /app /app
 | 
			
		|||
# than what runs inside of docker.
 | 
			
		||||
COPY --from=build_node_modules /node_modules /node_modules
 | 
			
		||||
 | 
			
		||||
# Delete unnecessary files 
 | 
			
		||||
RUN npm cache clean --force && rm -rf ~/.npm
 | 
			
		||||
 | 
			
		||||
# Install Linux packages
 | 
			
		||||
RUN apk add --no-cache \
 | 
			
		||||
    dpkg \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue