nodesource / docker-node

Dockerfiles for building docker images with the NodeSource Node.js binaries baked in.
MIT License
192 stars 22 forks source link

NodeSource Docker Images

The NodeSource docker images deliver NodeSource's deb and rpm packages across all of our supported platforms! We offer version pinning, allowing your project to track major, minor, or patch versions of Node or iojs.

Usage

Use any one of our images as a base for your image. We suggest caching your package.json and npm install in layers to reduce build time:

FROM nodesource/jessie:0.12.7

# cache package.json and node_modules to speed up builds
ADD package.json package.json
RUN npm install

# Add your source files
ADD . .
CMD ["npm","start"]

Notes

Images

We offer tags for tracking major and minor releases. These tags enable you to receive either security patches or new features, while avoiding breaking changes.

Note: some images may not have all tags, if a major/minor version is not supported on a particular release, these tags will not work. For example, Ubuntu Precise does not have any iojs tags, and Ubuntu Vivid does not have any tags before iojs-1.8.1.

Debian-based images

Ubuntu-based images

Fedora-based images

Centos-based images