FROM jameskyburz/server-base:7.9-alpine-npm
EXPOSE 8888
"scripts": {
"start": "node index"
}
FROM jameskyburz/server-base:7.9-alpine-yarn
EXPOSE 8888
"scripts": {
"start": "node index"
}
You can then build and run the Docker image:
$ docker build -t my-nodejs-app .
$ docker run -it --rm --name my-running-app my-nodejs-app