{"id":25175202,"url":"https://github.com/kaustubholpadkar/docker-node-application-sever","last_synced_at":"2026-04-11T05:31:51.119Z","repository":{"id":87166365,"uuid":"139946486","full_name":"kaustubholpadkar/Docker-Node-Application-Sever","owner":"kaustubholpadkar","description":"Creating a simple Node Application Sever using Docker  ","archived":false,"fork":false,"pushed_at":"2018-07-06T07:24:15.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T16:21:17.866Z","etag":null,"topics":["application-server","docker","express-js","node-js"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kaustubholpadkar.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":"2018-07-06T07:04:47.000Z","updated_at":"2018-07-06T07:24:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"5db2f2d1-f0ec-45ad-878b-ce0811e5be26","html_url":"https://github.com/kaustubholpadkar/Docker-Node-Application-Sever","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kaustubholpadkar/Docker-Node-Application-Sever","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaustubholpadkar%2FDocker-Node-Application-Sever","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaustubholpadkar%2FDocker-Node-Application-Sever/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaustubholpadkar%2FDocker-Node-Application-Sever/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaustubholpadkar%2FDocker-Node-Application-Sever/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaustubholpadkar","download_url":"https://codeload.github.com/kaustubholpadkar/Docker-Node-Application-Sever/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaustubholpadkar%2FDocker-Node-Application-Sever/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31669633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["application-server","docker","express-js","node-js"],"created_at":"2025-02-09T12:29:14.424Z","updated_at":"2026-04-11T05:31:51.078Z","avatar_url":"https://github.com/kaustubholpadkar.png","language":"JavaScript","readme":"# Docker-Node-Application-Sever\nCreating a simple Node Application Sever using Docker  \n\n## Overview\nThis project aims at creating a simple Node-Express application server using Docker\n\n## Part 1: Create Node Application\n### Step 1: Create 'package.json'\n```javascript\n{\n  \"name\": \"docker_web_app\",\n  \"version\": \"1.0.0\",\n  \"description\": \"Node.js on Docker\",\n  \"author\": \"Kaustubh Olpadkar \u003ckaustubh.olpadkar@gmail.com\u003e\",\n  \"main\": \"server.js\",\n  \"scripts\": {\n    \"start\": \"node server.js\"\n  },\n  \"dependencies\": {\n    \"express\": \"^4.16.1\"\n  }\n}\n\n```\n\n### Step 2: Install dependencies\n```terminal\n$ npm install\n```\n\n### Step 3: Create 'server.js'\n```javascript\n'use strict';\n\nconst express = require('express');\n\n// Constants\nconst PORT = 8080;\nconst HOST = '0.0.0.0';\n\n// App\nconst app = express();\napp.get('/', (req, res) =\u003e {\n  res.send('Hello world\\n');\n});\n\napp.listen(PORT, HOST);\nconsole.log(`Running on http://${HOST}:${PORT}`);\n```\n\n\n## Part 2: Running Node Application in Docker\n### Step 1: Create 'Dockerfile'\n```\nFROM node:8\n\n# Create app directory\nWORKDIR /usr/src/app\n\n# Install app dependencies\n# A wildcard is used to ensure both package.json AND package-lock.json are copied\n# where available (npm@5+)\nCOPY package*.json ./\n\nRUN npm install\n# If you are building your code for production\n# RUN npm install --only=production\n\n# Bundle app source\nCOPY . .\n\nEXPOSE 8080\n\nCMD [ \"npm\", \"start\" ]\n```\n\n### Step 2: Create '.dockerignore'\n```\nnode_modules\nnpm-debug.log\n```\n\n### Step 3: Build Docker Image\n```\n$ sudo docker run -p 49160:8080 -d kaustubh/node-web-app\n```\n\n### Step 4: \n```\n$ sudo docker run -p 49160:8080 -d kaustubh/node-web-app\n```\n\nNow our Application Server is running and you can access it through http://localhost:49160 in your browser.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaustubholpadkar%2Fdocker-node-application-sever","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaustubholpadkar%2Fdocker-node-application-sever","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaustubholpadkar%2Fdocker-node-application-sever/lists"}