add process supervisor for starting server.js

This commit is contained in:
slotix 2019-08-19 14:01:37 +02:00
parent e661241f6f
commit 7ba7ee9226

View File

@ -65,5 +65,9 @@ RUN npm install --ignore-scripts
# Cleanup # Cleanup
RUN apt-get clean && rm -rf /var/lib/apt/lists/* 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 EXPOSE $PORT
CMD [ "node", "server/server.js" ]
CMD ["dumb-init", "node", "server/server.js"]