Skip to content

Commit

Permalink
feat: Add tini
Browse files Browse the repository at this point in the history
* Add tini to reap zombie processes
* krallin/tini#8
  • Loading branch information
rblaine95 committed May 15, 2022
1 parent 50b1e8e commit 88c6ec4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM node:16.13.0 AS base

# Install ffmpeg
RUN apt-get update && \
apt-get install -y ffmpeg && \
apt-get install -y ffmpeg tini && \
rm -rf /var/lib/apt/lists/*

# Install dependencies
Expand Down Expand Up @@ -34,4 +34,5 @@ ENV NODE_ENV production
ENV COMMIT_HASH $COMMIT_HASH
ENV BUILD_DATE $BUILD_DATE

CMD ["yarn", "start"]
CMD ["tini", "--", "yarn", "start"]

0 comments on commit 88c6ec4

Please # to comment.