Skip to content

Commit

Permalink
feat: Add tini to Docker image (#657)
Browse files Browse the repository at this point in the history
* feat: Add tini

* Add tini to reap zombie processes
* krallin/tini#8

* Update changelog
  • Loading branch information
rblaine95 authored May 15, 2022
1 parent 50b1e8e commit cb11398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Changed
- Bumped dependencies
- Add tini to Docker image to reap zombie processes

## [2.0.2] - 2022-05-14
### Changed
Expand Down
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 cb11398

Please # to comment.