Install and run npm init -y npm install express --save node app.js Docker .dockerignore docker run -d -p 3002:3002 mynodejs . Links https://www.harness.io/blog/dockerizing-your-node-application?utm_source=internal&utm_medium=social&utm_campaign=community&utm_content=blog_republish&utm_term=devto_article https://nodejs.org/en/docs/guides/nodejs-docker-webapp/