{"id":34790619,"url":"https://github.com/krondorl/dockerize-node","last_synced_at":"2026-04-01T16:56:49.842Z","repository":{"id":319152997,"uuid":"1076955121","full_name":"krondorl/dockerize-node","owner":"krondorl","description":"Modern Dockerfile for Node.js","archived":false,"fork":false,"pushed_at":"2025-10-27T11:54:54.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-27T13:50:22.297Z","etag":null,"topics":["best-practices","dockerfile","nodejs"],"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/krondorl.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-15T15:14:05.000Z","updated_at":"2025-10-27T19:13:30.000Z","dependencies_parsed_at":"2025-10-18T08:10:46.381Z","dependency_job_id":"b2b66507-6034-4e6d-90d7-184da004734c","html_url":"https://github.com/krondorl/dockerize-node","commit_stats":null,"previous_names":["krondorl/dockerize-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/krondorl/dockerize-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krondorl%2Fdockerize-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krondorl%2Fdockerize-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krondorl%2Fdockerize-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krondorl%2Fdockerize-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krondorl","download_url":"https://codeload.github.com/krondorl/dockerize-node/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krondorl%2Fdockerize-node/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31047129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-27T09:35:52.079Z","status":"ssl_error","status_checked_at":"2026-03-27T09:35:20.916Z","response_time":164,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["best-practices","dockerfile","nodejs"],"created_at":"2025-12-25T09:59:00.907Z","updated_at":"2026-04-01T16:56:49.820Z","avatar_url":"https://github.com/krondorl.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"docs/dockerize-node.svg\" /\u003e\n\n# Dockerized Node.js Hello World\n\nA simple Hello World Node.js CLI application containerized with Docker.\n\n## Installation\n\n1. Clone this repository:\n   ```bash\n   git clone \u003crepository-url\u003e\n   cd dockerize-node\n   ```\n\n2. Install dependencies (if any):\n   ```bash\n   npm install\n   ```\n\n## Development Setup\n\n### Prerequisites\n\n- Node.js 24.9.1 or compatible version\n- npm 10.1.0 or higher (comes with Node.js 24.9.1)\n- Docker (for container deployment)\n\n### Engine Requirements\n\n```json\n\"engines\": {\n  \"node\": \"\u003e=24.9.1\",\n  \"npm\": \"\u003e=10.1.0\"\n}\n```\n\nThe project uses:\n- Base image: `node:24.9.1-alpine` (minimal Node.js image)\n- Type: ES Modules (`\"type\": \"module\"` in package.json)\n\n### Local Development\n\nTo run the application locally without Docker:\n\n```bash\nnode index.js\n```\n\n## Docker Commands\n\n### Build the Docker Image\n\nNode.js environment is set to production by default.\n\n```bash\ndocker build -t dockerize-node .\n```\n\nIf you want to set the Node.js environment to development:\n\n```bash\ndocker build -t --build-arg NODE_ENV=development .\n```\n\n### Run the Container\n\n```bash\ndocker run -it dockerize-node\n```\n\nThis will run the Hello World script inside the container and output the result.\n\nThe `-it` parameter is important, or else the coloring won't work.\n\n### View Previous Container Logs\n\n```bash\ndocker logs $(docker ps -a -q --filter ancestor=dockerize-node --latest)\n```\n\n## Development\n\n1. Make changes to the code\n2. Build the Docker image: `docker build -t dockerize-node .`\n3. Run the container: `docker run -it dockerize-node`\n4. Test your changes\n\n## Notes\n\nSince this is a simple CLI application that runs and exits, there's no need for port mapping or long-running container management. Each `docker run` command will:\n\n1. Create a new container\n2. Execute the Hello World script\n3. Output the result\n4. Exit automatically\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrondorl%2Fdockerize-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrondorl%2Fdockerize-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrondorl%2Fdockerize-node/lists"}