Browse Source

fixup: add timeout otherwise it reports unhealthy

pull/1015/head
Philip H 11 months ago
committed by GitHub
parent
commit
155541fbdb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      Dockerfile

2
Dockerfile

@ -15,7 +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"
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
# Move node_modules one directory up, so during development

Loading…
Cancel
Save