forked from mirrors/amnezia-wg-easy
		
	bump to node 20
This commit is contained in:
		
							parent
							
								
									2eec97ff25
								
							
						
					
					
						commit
						3032163814
					
				
					 5 changed files with 6 additions and 9 deletions
				
			
		
							
								
								
									
										2
									
								
								.github/workflows/lint.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/lint.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -18,7 +18,7 @@ jobs:
 | 
				
			||||||
      - name: Setup Node
 | 
					      - name: Setup Node
 | 
				
			||||||
        uses: actions/setup-node@v4
 | 
					        uses: actions/setup-node@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          node-version: '18'
 | 
					          node-version: '20'
 | 
				
			||||||
          check-latest: true
 | 
					          check-latest: true
 | 
				
			||||||
          cache: 'npm'
 | 
					          cache: 'npm'
 | 
				
			||||||
          cache-dependency-path: |
 | 
					          cache-dependency-path: |
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								.github/workflows/npm-update-bot.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/npm-update-bot.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
					@ -20,7 +20,7 @@ jobs:
 | 
				
			||||||
      - name: Setup Node
 | 
					      - name: Setup Node
 | 
				
			||||||
        uses: actions/setup-node@v4
 | 
					        uses: actions/setup-node@v4
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          node-version: '18'
 | 
					          node-version: '20'
 | 
				
			||||||
          check-latest: true
 | 
					          check-latest: true
 | 
				
			||||||
          cache: 'npm'
 | 
					          cache: 'npm'
 | 
				
			||||||
          cache-dependency-path: |
 | 
					          cache-dependency-path: |
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,7 +1,4 @@
 | 
				
			||||||
# There's an issue with node:20-alpine.
 | 
					FROM docker.io/library/node:20-alpine AS build_node_modules
 | 
				
			||||||
# Docker deployment is canceled after 25< minutes.
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
FROM docker.io/library/node:18-alpine AS build_node_modules
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Copy Web UI
 | 
					# Copy Web UI
 | 
				
			||||||
COPY src/ /app/
 | 
					COPY src/ /app/
 | 
				
			||||||
| 
						 | 
					@ -11,7 +8,7 @@ RUN npm ci --omit=dev &&\
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 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
 | 
					FROM docker.io/library/node:20-alpine
 | 
				
			||||||
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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										2
									
								
								src/package-lock.json
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								src/package-lock.json
									
										
									
										generated
									
									
									
								
							| 
						 | 
					@ -21,7 +21,7 @@
 | 
				
			||||||
        "tailwindcss": "^3.4.3"
 | 
					        "tailwindcss": "^3.4.3"
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
      "engines": {
 | 
					      "engines": {
 | 
				
			||||||
        "node": "18"
 | 
					        "node": "20"
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    "node_modules/@aashutoshrathi/word-wrap": {
 | 
					    "node_modules/@aashutoshrathi/word-wrap": {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -30,6 +30,6 @@
 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  "engines": {
 | 
					  "engines": {
 | 
				
			||||||
    "node": "18"
 | 
					    "node": "20"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue