From 7ba7ee92265ba4143058ab768c9c67e83b4f1ea7 Mon Sep 17 00:00:00 2001 From: slotix Date: Mon, 19 Aug 2019 14:01:37 +0200 Subject: [PATCH] add process supervisor for starting server.js --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e836084..97c095d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,5 +65,9 @@ RUN npm install --ignore-scripts # Cleanup RUN apt-get clean && rm -rf /var/lib/apt/lists/* +ADD https://github.com/Yelp/dumb-init/releases/download/v1.2.2/dumb-init_1.2.2_amd64 /usr/local/bin/dumb-init +RUN chmod +x /usr/local/bin/dumb-init + EXPOSE $PORT -CMD [ "node", "server/server.js" ] \ No newline at end of file + +CMD ["dumb-init", "node", "server/server.js"] \ No newline at end of file