This commit is contained in:
Alan Grainger
2026-10-07 09:56:31 +13:00
7 changed files with 18 additions and 7 deletions
+4 -1
View File
@@ -31,7 +31,7 @@ RUN rm -rf node_modules \
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
# At /app, as IPP, so a config.json mounts at the same path in both images
@@ -47,4 +47,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" ]