Production ready Node.js Docker image including the PM2 runtime
5M+
FROM node:16-buster
LABEL maintainer="Keymetrics <[email protected]>"
# Install pm2
RUN npm install pm2 -g
# Expose ports needed to use Keymetrics.io
EXPOSE 80 443 43554
# Start pm2.json process file
CMD ["pm2-runtime", "start", "pm2.json"]