Skip to content

Commit

Permalink
fix: change healthcheck cmd to use exec form
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Feb 12, 2025
1 parent b2db3bb commit 80d1af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20 AS builder
FROM node:20-alpine AS builder

COPY ./ /build/

Expand Down Expand Up @@ -32,4 +32,4 @@ EXPOSE ${NITRO_PORT}

CMD ["pm2-runtime", "ecosystem.config.cjs"]
HEALTHCHECK --start-period=30s --retries=2 \
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:${NITRO_PORT}/health || exit 1
CMD ["wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:${NITRO_PORT}/health"]

0 comments on commit 80d1af2

Please sign in to comment.