forked from mirrors/amnezia-wg-easy
		
	node 14 → node 20
This commit is contained in:
		
							parent
							
								
									a89ff96d37
								
							
						
					
					
						commit
						c2432a17a9
					
				
					 1 changed files with 2 additions and 13 deletions
				
			
		
							
								
								
									
										15
									
								
								Dockerfile
									
										
									
									
									
								
							
							
						
						
									
										15
									
								
								Dockerfile
									
										
									
									
									
								
							| 
						 | 
					@ -1,15 +1,4 @@
 | 
				
			||||||
# There's an issue with node:16-alpine.
 | 
					FROM docker.io/library/node:20-alpine AS build_node_modules
 | 
				
			||||||
# On Raspberry Pi, the following crash happens:
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# #FailureMessage Object: 0x7e87753c
 | 
					 | 
				
			||||||
# #
 | 
					 | 
				
			||||||
# # Fatal error in , line 0
 | 
					 | 
				
			||||||
# # unreachable code
 | 
					 | 
				
			||||||
# #
 | 
					 | 
				
			||||||
# #
 | 
					 | 
				
			||||||
# #
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
FROM docker.io/library/node:14-alpine@sha256:dc92f36e7cd917816fa2df041d4e9081453366381a00f40398d99e9392e78664 AS build_node_modules
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Copy Web UI
 | 
					# Copy Web UI
 | 
				
			||||||
COPY src/ /app/
 | 
					COPY src/ /app/
 | 
				
			||||||
| 
						 | 
					@ -18,7 +7,7 @@ RUN npm ci --production
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 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:14-alpine@sha256:dc92f36e7cd917816fa2df041d4e9081453366381a00f40398d99e9392e78664
 | 
					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
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue