forked from mirrors/amnezia-wg-easy
		
	npm: set global config
This commit is contained in:
		
							parent
							
								
									950b13a88a
								
							
						
					
					
						commit
						a27ec4e201
					
				
					 3 changed files with 12 additions and 6 deletions
				
			
		
							
								
								
									
										2
									
								
								.github/workflows/lint.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/lint.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -23,7 +23,7 @@ jobs:
 | 
			
		|||
 | 
			
		||||
      - name: npm run lint
 | 
			
		||||
        run: |
 | 
			
		||||
          npm config set fund false
 | 
			
		||||
          npm config set -g fund false
 | 
			
		||||
          cd src
 | 
			
		||||
          npm ci --legacy-peer-deps
 | 
			
		||||
          npm run lint
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								.github/workflows/npm-update-bot.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/npm-update-bot.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -22,7 +22,7 @@ jobs:
 | 
			
		|||
 | 
			
		||||
      - name: Bot 🤖 "Updating NPM Packages..."
 | 
			
		||||
        run: |
 | 
			
		||||
          npm config set fund false
 | 
			
		||||
          npm config set -g fund false
 | 
			
		||||
          npm update
 | 
			
		||||
          cd src
 | 
			
		||||
          npm update
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										14
									
								
								Dockerfile
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								Dockerfile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -3,8 +3,9 @@
 | 
			
		|||
 | 
			
		||||
FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f AS build_node_modules
 | 
			
		||||
 | 
			
		||||
RUN npm config set fund false &&\
 | 
			
		||||
    npm config set update-notifier false
 | 
			
		||||
# Hide fund and update-notifier message
 | 
			
		||||
RUN npm config set -g fund false &&\
 | 
			
		||||
    npm config set -g update-notifier false
 | 
			
		||||
 | 
			
		||||
# Copy Web UI
 | 
			
		||||
COPY src/ /app/
 | 
			
		||||
| 
						 | 
				
			
			@ -13,6 +14,11 @@ RUN npm ci --legacy-peer-deps
 | 
			
		|||
# Copy build result to a new image.
 | 
			
		||||
# This saves a lot of disk space.
 | 
			
		||||
FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f
 | 
			
		||||
 | 
			
		||||
# Hide fund and update-notifier message
 | 
			
		||||
RUN npm config set -g fund false &&\
 | 
			
		||||
    npm config set -g update-notifier false
 | 
			
		||||
 | 
			
		||||
COPY --from=build_node_modules /app /app
 | 
			
		||||
 | 
			
		||||
# Move node_modules one directory up, so during development
 | 
			
		||||
| 
						 | 
				
			
			@ -29,8 +35,8 @@ RUN npm i -g nodemon
 | 
			
		|||
 | 
			
		||||
# Install Linux packages
 | 
			
		||||
RUN apk add -U --no-cache \
 | 
			
		||||
  wireguard-tools \
 | 
			
		||||
  dumb-init
 | 
			
		||||
    wireguard-tools \
 | 
			
		||||
    dumb-init
 | 
			
		||||
 | 
			
		||||
# Expose Ports
 | 
			
		||||
EXPOSE 51820/udp
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue