node server with vars to quick start and develop
10K+
Image for quickstarting nodeapps from volume or GIT with regular "node" or "nodemon" . You can also choose a specific git release/tag to start.
Example 1:
docker run -it -e "APP_NAME=server.js" -e "GIT=https://github.com/mmbash/mops.io" -e "GIT_TAG=v0.6.1" -p 3000:3000 mikemichel/node-easy /bin/sh /tmp/gitmon.sh
This does:
Example 2:
docker run -it -e "APP_NAME=app.js" -v /media/apps/express-chat:/myapp mikemichel/node-easy /bin/sh /tmp/nodemon.sh
This does:
ENV:
APP_NAME= which file to start with node/nodemon GIT= GIT URL to clone when you use ./tmp/gitmon.sh GIT_TAG= which git release you want to start
CMD
/tmp/node.sh: for "nodejs APP_NAME"
/tmp/nodemon.sh: for "nodemon APP_NAME"
/tmp/gitmon.sh: for git clone GIT and "nodemon APP_NAME"
/tmp/npmstart.sh: for "GIT Clone, npm install, npm start"
Content type
Image
Digest
sha256:54b40df52…
Size
129.3 MB
Last updated
almost 11 years ago
docker pull mikemichel/node-easy