Public | Automated Build

Last pushed: 5 hours 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 start-app.sh 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 run.sh

You can add/overwrite start-app.sh and/or run.sh if needed.

-v <source-files-dir>:/home/app -v <path-to-custom-run.sh>:/my-run.sh -d aminjam/nodejs /my-run.sh
Docker Pull Command
Owner
aminjam
Source Repository

Comments (0)