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.
latest tag ~691MB from node:4docker 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
-v <source-files-dir>:/home/app -e NODE_ENV=production -d aminjam/nodejs
run.shYou 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
Content type
Image
Digest
sha256:be4acdfb7…
Size
278.1 MB
Last updated
over 8 years ago
docker pull aminjam/nodejs