{"id":16540538,"url":"https://github.com/sameersbn/docker-nodejs","last_synced_at":"2025-10-15T03:32:10.794Z","repository":{"id":18698049,"uuid":"21908186","full_name":"sameersbn/docker-nodejs","owner":"sameersbn","description":"Dockerfile to build a nodejs+express image with nodemon","archived":false,"fork":false,"pushed_at":"2015-12-13T08:27:53.000Z","size":26,"stargazers_count":7,"open_issues_count":1,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T20:09:26.823Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sameersbn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-16T16:20:23.000Z","updated_at":"2016-11-23T13:56:14.000Z","dependencies_parsed_at":"2022-08-05T01:00:13.234Z","dependency_job_id":null,"html_url":"https://github.com/sameersbn/docker-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sameersbn/docker-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameersbn","download_url":"https://codeload.github.com/sameersbn/docker-nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameersbn%2Fdocker-nodejs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263542603,"owners_count":23477455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T18:52:42.211Z","updated_at":"2025-10-15T03:32:05.759Z","avatar_url":"https://github.com/sameersbn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Docker Repository on Quay.io](https://quay.io/repository/sameersbn/nodejs/status \"Docker Repository on Quay.io\")](https://quay.io/repository/sameersbn/nodejs)\n\n\u003e **NOTICE**:\n\u003e\n\u003e Active maintenance of the image has been halted. Your [contributions](#contributing) are welcome.\n\n# Table of Contents\n- [Introduction](#introduction)\n- [Contributing](#contributing)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Limitations](#limitations)\n- [How it works](#how-it-works)\n- [Upgrading](#upgrading)\n- [Uninstallation](#uninstallation)\n\n# Introduction\n\nDockerfile to build a nodejs+express image with [nodemon](http://nodemon.io/).\n\n# Contributing\n\nIf you find this image useful here's how you can help:\n\n- Send a Pull Request with your awesome new features and bug fixes\n- Help new users with [Issues](https://github.com/sameersbn/docker-nodejs/issues) they may encounter\n- Support the development of this image with a [donation](http://www.damagehead.com/donate/)\n\n# Installation\n\n```bash\ndocker run -it --rm -v /usr/local/bin:/target \\\nsameersbn/nodejs:latest install\n```\n\nThis installs wrapper scripts to launch `node`, `nodejs`, `npm`, `express` and `nodemon` on the host.\n\n# Usage\n*Note: These commands are executed on the host*\n\n```bash\nexpress -c less myExpress\ncd myExpress\nnpm install\nnpm start\n```\n\nYou can also use `nodemon bin/www` instead of `npm start`.\n\n[![Mind Blown](http://img4.wikia.nocookie.net/__cb20130223000930/adventuretimewithfinnandjake/images/b/b3/Kevin-Butler-Mind-Blown.gif)](https://www.youtube.com/v/kgsP_WAFbu0?start=94\u0026end=100)\n\n**If the command being executed is present on the host, then the host command is executed and the docker image is not started.**\n\n# Limitations\n\nThe only known limitation is that you cannot install node modules globally, that is to say `npm install -g \u003cmodule-name\u003e` will not work. These can only be installed from the `Dockerfile`. If you want to add node modules globally please send a PR.\n\n# How it works\n\nThe wrapper scripts mount the current working directory and host networking while starting the `sameersbn/nodejs` image. The command executed while starting the image is the same as the name of the wrapper script that was launched with whatever arguments were passed while running the wrapper script.\n\nFor example, if `npm start` is executed, the following command is executed by the wrapper script:\n\n```bash\ndocker run -it --rm --net=host \\\n  -v $PWD:/home/nodejs/src sameersbn/nodejs:latest npm start\n```\n\n# Upgrading\n\nTo upgrade to newer releases, simply update the image\n\n```\ndocker pull sameersbn/nodejs:latest\n```\n\n# Uninstallation\n\n```bash\ndocker run -it --rm -v /usr/local/bin:/target \\\nsameersbn/nodejs:latest uninstall\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameersbn%2Fdocker-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameersbn%2Fdocker-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameersbn%2Fdocker-nodejs/lists"}