forked from mirrors/amnezia-wg-easy
		
	fixup: add timeout otherwise it reports unhealthy
This commit is contained in:
		
							parent
							
								
									3f763d2607
								
							
						
					
					
						commit
						155541fbdb
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -15,7 +15,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:20-alpine
 | 
					FROM docker.io/library/node:20-alpine
 | 
				
			||||||
HEALTHCHECK --interval=1m --timeout=5s --retries=3 CMD "/usr/bin/wg show | /bin/grep -q interface || exit 1"
 | 
					HEALTHCHECK --interval=1m --timeout=5s --retries=3 CMD "/usr/bin/timeout 5s /bin/sh -c /usr/bin/wg show | /bin/grep -q interface || exit 1"
 | 
				
			||||||
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