Skip to content

Commit e78ca28

Browse files
committed
feat: add tini to Dockerfile for cleaning up zombie processes
1 parent 796dfad commit e78ca28

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ ENV NODE_ENV=production
2727
ENV NODE_PATH='dist'
2828

2929
# Install dependencies
30-
RUN apk --no-cache add python3 git jq openssh
30+
RUN apk --no-cache add python3 git jq openssh tini
3131

3232
# Install app
3333
RUN mkdir /app
@@ -42,4 +42,5 @@ RUN echo 'nouser:x:999:999::/home/nouser:/bin/sh' >> /etc/passwd
4242
USER node
4343
EXPOSE 8080
4444

45+
ENTRYPOINT ["/sbin/tini", "--"]
4546
CMD ["node", "--max-http-header-size", "16384", "dist/src/app.js"]

0 commit comments

Comments
 (0)