Modified from here Introduction to Docker for Javascript Developers (feat Node.js and PostgreSQL), with all irrelevant experiments removed. Also presumably docker is already installed.
with
git clone https://github.com/TomasKindahl/node-API.git cd node-API
npm ci express
This is for NodeJS API development purposes, if you only need to run NodeJS in docker, jump to section Running with docker!
npm run start
Now lookup localhost:8080!
For any n
docker build -t nodeapi:vn .
docker run -d -p 5080:8080 nodeapi:vn
Now lookup localhost:5080!