DEV Community

Discussion on: Using Docker for Node.js in Development and Production

Collapse
 
2anandkr profile image
anand kumar

you can have your npm scripts like : start:development and start:production
In the Dockerfile, you can use CMD [ "npm", “run”, "start:${NODE_ENV}" ].