mirror of
https://github.com/w0rng/amnezia-wg-easy.git
synced 2025-04-25 21:00:21 +03:00
add healthcheck into Dockerfile
Thanks @CosasDePuma
This commit is contained in:
parent
4911082a34
commit
83408f6a9b
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ RUN npm ci --omit=dev &&\
|
|||
# Copy build result to a new image.
|
||||
# This saves a lot of disk space.
|
||||
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"
|
||||
COPY --from=build_node_modules /app /app
|
||||
|
||||
# Move node_modules one directory up, so during development
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue