{"id":21633941,"url":"https://github.com/tweedegolf/docker-node-image","last_synced_at":"2026-04-10T17:26:14.112Z","repository":{"id":232986193,"uuid":"785726361","full_name":"tweedegolf/docker-node-image","owner":"tweedegolf","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-05T21:40:19.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-05T22:32:49.567Z","etag":null,"topics":["container","docker"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","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/tweedegolf.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-12T13:47:52.000Z","updated_at":"2025-03-05T21:40:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"7be6ea0d-ac78-4739-9ab4-7cfbd37c0128","html_url":"https://github.com/tweedegolf/docker-node-image","commit_stats":null,"previous_names":["tweedegolf/docker-node-image"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fdocker-node-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fdocker-node-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fdocker-node-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tweedegolf%2Fdocker-node-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tweedegolf","download_url":"https://codeload.github.com/tweedegolf/docker-node-image/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244320286,"owners_count":20434088,"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":["container","docker"],"created_at":"2024-11-25T03:14:40.264Z","updated_at":"2025-12-31T00:13:37.193Z","avatar_url":"https://github.com/tweedegolf.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Docker images\nThis image contains Node.js, yarn and a postgresql client and basic build\ntools. For yarn we use the 1.0 version distributed from their apt repository.\nCurrently these tags are available:\n\n* Node.js 20: `20`\n* Node.js 22: `22`\n* Node.js 24: `24`, `lts`, `latest`\n\nAll versions contain node.js at the specified version, npm and yarn. They also\ninclude the postgresql client applications (e.g. psql and others) and include\nbasic build tools allowing you to build C/C++ node.js extensions as well.\n\n## Extended images\nYou can also use the extended images (with the postfix `-extended`). These\nvariants include dependencies for running browsers such as for usage with\npuppeteer.\n\n## Full images\nA larger variant still is also available (with the postfix `-full`). These\nimages include preinstalled firefox and chromium browsers, making them suitable\nfor end-to-end testing.\n\n## Usage\nFor basic usage instructions, also see our [debian image] detailed usage\ninstructions. Basic usage when using docker compose is shown below:\n\n```yaml\nservices:\n    # ...\n    app:\n        image: ghcr.io/tweedegolf/node:lts\n        user: \"$USER_ID:$GROUP_ID\"\n        command: [npm, run, server]\n        volumes: [\".:/app\"]\n        working_dir: /app\n    # ...\n```\n\n## Extending for production\nWhen running this image in a production setting, you should set up a few things:\n\n* Create a user that your application will run under\n* Make sure that user will be the default user\n* Set the `ROOT_SWITCH_USER` environment variable to your user as well to\n  prevent the application accidentally running as root\n* Copy the full appllication and its dependencies into the image\n* Set a command that will run the application\n\nSee for example the Dockerfile below:\n\n```Dockerfile\nFROM ghcr.io/tweedegolf/node:lts\nRUN useradd -C Application -m -U app\nENV ROOT_SWITCH_USER app\nENV NODE_ENV production\nCOPY --chown=app:app ./build /opt/application\nWORKDIR /opt/application\nCMD [\"node\", \"index.js\"]\nUSER app\n```\n\n[debian image]: https://github.com/tweedegolf/docker-debian-image\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftweedegolf%2Fdocker-node-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftweedegolf%2Fdocker-node-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftweedegolf%2Fdocker-node-image/lists"}