diff --git a/Dockerfile b/Dockerfile index de68d2c..966a78c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,5 +24,5 @@ EXPOSE 3000 # The node user is provided in the Node.js Alpine base image USER node -# Run npm start script when container starts -CMD [ "npm", "start" ] \ No newline at end of file +# Run npm start script with PM2 when container starts +CMD [ "pm2-runtime", "npm", "--", "start" ] \ No newline at end of file