Public | Automated Build

Last pushed: 2 days ago
Short Description
node v4.2.3 npm 2.14.7
Full Description

Node.js Dockerfile

This repository contains Dockerfile of Node.js for Docker's automated build published to the public Docker Hub Registry.
This container is using supervisord for auto-restarting the app in the case of failure.

Base Docker Image & Size

  • latest tag ~691MB from node:4

Usage docker run

-v <source-files-dir>:/home/app -d aminjam/nodejs

This command executes script:

cd /home/app/
npm install --production && npm rebuild
bower install --config.interactive=false --allow-root
PORT=3001 npm start --production

w/ custom NODE_ENV

-v <source-files-dir>:/home/app -e NODE_ENV=production -d aminjam/nodejs

w/ custom

You can add/overwrite and/or if needed.

-v <source-files-dir>:/home/app -v <>:/ -d aminjam/nodejs /
Docker Pull Command
Source Repository