Fix zombie wget processes #66

This commit is contained in:
Alan Grainger
2026-10-07 09:47:06 +13:00
parent 54c0f91c4e
commit 9cd5e4ed18
4 changed files with 12 additions and 4 deletions
+4 -1
View File
@@ -13,7 +13,7 @@ RUN npm ci \
FROM node:lts-alpine AS runner
RUN apk --no-cache add curl \
RUN apk --no-cache add curl tini \
&& mkdir /app && chown node:node /app
USER node
@@ -26,4 +26,7 @@ ARG PACKAGE_VERSION
ENV APP_VERSION=${PACKAGE_VERSION}
ENV NODE_ENV=production
# tini as PID 1 reaps orphaned healthcheck processes, which node does not (GitHub #66).
# -s keeps reaping, without a warning, when PID 1 is already an init (compose `init: true`).
ENTRYPOINT ["/sbin/tini", "-s", "--"]
CMD ["node", "dist/index.js" ]