A docker image running node.js on Alpine Linux
1.4K
A Docker image running node.js with tini on Alpine Linux.
The repo contains Dockerfiles for images for node.js v6.2 including an onbuild variant.
enil/alpine-node:6.2The enil/alpine-node:6.2 image can be run by specifying a volume and a command running the application with node:
docker run -v .:/usr/src/app -w /usr/src/app -p 8080:8080 enil/alpine-node:6.2 npm start
enil/alpine-node:6.2-onbuildThe enil/alpine-node:6.2-onbuild can be used as a base image for a Dockerfile:
FROM enil/alpine-node:6.2-onbuild
CMD ["npm", "start"]
By extending the base image the contents of the context directory is copied to /usr/src/app in the container and npm install is run installing the dependencies specified in package.json.
The images can be customized by passing build arguments to docker to docker build.
The following arguments can be used:
Content type
Image
Digest
Size
11.8 MB
Last updated
about 10 years ago
docker pull enil/alpine-node