mirror of
http://forgejo-oa09toasww4dgii9cj3gpzda.187.127.164.61.sslip.io/iamcoolvivek007/bharath.git
synced 2026-06-11 00:06:51 +00:00
Fix: install curl for healthcheck, wget uses IPv6 on alpine
This commit is contained in:
parent
527fb237e9
commit
6cbf8448c1
1 changed files with 4 additions and 2 deletions
|
|
@ -1,5 +1,7 @@
|
|||
FROM node:22-alpine
|
||||
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY webapp/package.json webapp/package-lock.json ./
|
||||
|
|
@ -11,7 +13,7 @@ COPY webapp/.env ./.env
|
|||
ENV NODE_ENV=production
|
||||
EXPOSE 3000
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s \
|
||||
CMD wget --no-verbose --tries=1 --spider http://127.0.0.1:3000/health || exit 1
|
||||
HEALTHCHECK --interval=10s --timeout=3s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://127.0.0.1:3000/health || exit 1
|
||||
|
||||
CMD ["node", "src/server.js"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue