Skip to content

Commit

Permalink
fix(Docker): use tini to handle kernel signals (#2622)
Browse files Browse the repository at this point in the history
  • Loading branch information
PixnBits authored Nov 26, 2024
1 parent c6a8f8a commit c55d633
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ RUN if [ $(uname -m) != "aarch64" ]; then node-prune; fi
###############################################################
FROM node:18-alpine

# https://github.com/nodejs/docker-node/blob/main/docs/BestPractices.md#handling-kernel-signals
RUN apk add --no-cache tini

WORKDIR /usr/src/prism
ARG BUILD_TYPE=development
ENV NODE_ENV production
Expand Down Expand Up @@ -68,4 +71,4 @@ fi

EXPOSE 4010

ENTRYPOINT [ "node", "dist/index.js" ]
ENTRYPOINT [ "/sbin/tini", "--", "node", "dist/index.js" ]

0 comments on commit c55d633

Please sign in to comment.