Skip to content

Commit e5e44a4

Browse files
committed
Merge remote-tracking branch 'origin/main' into APL-523
2 parents 10f8411 + 5865383 commit e5e44a4

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 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,7 @@ RUN echo 'nouser:x:999:999::/home/nouser:/bin/sh' >> /etc/passwd
4242
USER node
4343
EXPOSE 8080
4444

45+
# tini is used as PID 1 to reap zombie child processes (e.g. git-remote-http)
46+
# that Node.js would otherwise leave unreaped, causing PID exhaustion over time
47+
ENTRYPOINT ["/sbin/tini", "--"]
4548
CMD ["node", "--max-http-header-size", "16384", "dist/src/app.js"]

0 commit comments

Comments
 (0)