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
 | 
					      - name: npm run lint
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          npm config set fund false
 | 
					          npm config set -g fund false
 | 
				
			||||||
          cd src
 | 
					          cd src
 | 
				
			||||||
          npm ci --legacy-peer-deps
 | 
					          npm ci --legacy-peer-deps
 | 
				
			||||||
          npm run lint
 | 
					          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..."
 | 
					      - name: Bot 🤖 "Updating NPM Packages..."
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          npm config set fund false
 | 
					          npm config set -g fund false
 | 
				
			||||||
          npm update
 | 
					          npm update
 | 
				
			||||||
          cd src
 | 
					          cd src
 | 
				
			||||||
          npm update
 | 
					          npm update
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										14
									
								
								Dockerfile
									
										
									
									
									
								
							
							
						
						
									
										14
									
								
								Dockerfile
									
										
									
									
									
								
							| 
						 | 
					@ -3,8 +3,9 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f AS build_node_modules
 | 
					FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f AS build_node_modules
 | 
				
			||||||
 | 
					
 | 
				
			||||||
RUN npm config set fund false &&\
 | 
					# Hide fund and update-notifier message
 | 
				
			||||||
    npm config set update-notifier false
 | 
					RUN npm config set -g fund false &&\
 | 
				
			||||||
 | 
					    npm config set -g update-notifier false
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Copy Web UI
 | 
					# Copy Web UI
 | 
				
			||||||
COPY src/ /app/
 | 
					COPY src/ /app/
 | 
				
			||||||
| 
						 | 
					@ -13,6 +14,11 @@ RUN npm ci --legacy-peer-deps
 | 
				
			||||||
# Copy build result to a new image.
 | 
					# Copy build result to a new image.
 | 
				
			||||||
# This saves a lot of disk space.
 | 
					# This saves a lot of disk space.
 | 
				
			||||||
FROM docker.io/library/node:18-alpine@sha256:3428c2de886bf4378657da6fe86e105573a609c94df1f7d6a70e57d2b51de21f
 | 
					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
 | 
					COPY --from=build_node_modules /app /app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Move node_modules one directory up, so during development
 | 
					# Move node_modules one directory up, so during development
 | 
				
			||||||
| 
						 | 
					@ -29,8 +35,8 @@ RUN npm i -g nodemon
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Install Linux packages
 | 
					# Install Linux packages
 | 
				
			||||||
RUN apk add -U --no-cache \
 | 
					RUN apk add -U --no-cache \
 | 
				
			||||||
  wireguard-tools \
 | 
					    wireguard-tools \
 | 
				
			||||||
  dumb-init
 | 
					    dumb-init
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Expose Ports
 | 
					# Expose Ports
 | 
				
			||||||
EXPOSE 51820/udp
 | 
					EXPOSE 51820/udp
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue