6.3.0, 6.3, latest (6.3/Dockerfile)6.0.0, 6.0 (6.0/Dockerfile)5.8.0, 5.8 (5.8/Dockerfile)0.10.43, 0.10 (0.10/Dockerfile)These images are based off the official Node.js docker images with some additional functionality:
node or npm are ran as an unprivileged user./app as the application directory. Everything in this directory will be recursively chowned to the node user at runtime..npm directory is excluded from the image during build to prevent the npm cache from landing in the image.Below is an example of how to use in a derived image:
FROM steadyserv/node:6.0.0
# set environment, can be overridden with --build-arg
ARG NODE_ENV
ENV NODE_ENV ${NODE_ENV:-production}
# allow Docker build to access your private npm registry
COPY .docker_npmrc /root/.npmrc
# Install app dependencies
COPY package.json ./
RUN npm install
# Bundle app source
COPY . ./
EXPOSE 8080
CMD ["npm", "start"]
In the example above, using --build-arg NODE_ENV=development would include dev dependencies during the install phase... otherwise it will default to production.
Content type
Image
Digest
Size
25.2 MB
Last updated
over 7 years ago
docker pull steadyserv/node