From 88c6ec4b3a44c7b8d4eba055d0b0a4d3d01393f6 Mon Sep 17 00:00:00 2001 From: Robbie Blaine Date: Sun, 15 May 2022 14:03:49 +0200 Subject: [PATCH] feat: Add tini * Add tini to reap zombie processes * https://github.com/krallin/tini/issues/8 --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8f88a35f..51c8a285 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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"] +