Sign inSign up

mahnunchik/nodejs-runtime

By mahnunchik

Updated over 8 years ago

Image
4

6.8K

mahnunchik/nodejs-runtime repository overview

nodejs-runtime

mahnunchik/nodejs-runtime is a docker image for easily running nodejs application by providing URL to its repository.

It is based on official nodejs base image.

Notes

mahnunchik/nodejs-runtime image assumes that you provide while running:

  • GIT_REPO environment variable that contains the path to git repository

The image assumes that your node application:

  • has a file named package.json listing its dependencies
  • define in package.json the attribute: "scripts": {"start": "node <entrypoint_script_js>"}
  • takes the port for listening from PORT environment variable

Usage

Interactive mode:

docker run -i -t -p 8080:8080 -e "GIT_REPO=https://github.com/your-git-repo" mahnunchik/nodejs-runtime

Daemon mode:

docker run -d -p 8080:8080 -e "GIT_REPO=https://github.com/your-git-repo" mahnunchik/nodejs-runtime

Tag summary

Content type

Image

Digest

sha256:28402f97a

Size

237.7 MB

Last updated

over 8 years ago

docker pull mahnunchik/nodejs-runtime