Merge pull request #45 from slotix/master

add process supervisor for starting server.js
This commit is contained in:
Nikolai Tschacher 2019-08-29 20:41:42 +02:00 committed by GitHub
commit dde1711d9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" ]
CMD ["dumb-init", "node", "server/server.js"]