Add tini #66
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
# IPP stays at /app so the documented mounts (/app/config.json,
|
||||
@@ -48,4 +48,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" ]
|
||||
|
||||
Reference in New Issue
Block a user