Sign inSign up

aminjam/nodejs

By aminjam

•Updated over 8 years ago

node v4.2.3 npm 2.14.7

Image
0

3.6K

aminjam/nodejs repository overview

⁠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
⁠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

Tag summary

Content type

Image

Digest

sha256:be4acdfb7…

Size

278.1 MB

Last updated

over 8 years ago

docker pull aminjam/nodejs