{"id":20170604,"url":"https://github.com/yds12/minimal-containerized-webapp","last_synced_at":"2026-05-06T04:03:55.763Z","repository":{"id":143440138,"uuid":"260881373","full_name":"yds12/minimal-containerized-webapp","owner":"yds12","description":"A minimal Node.js/Express web-app prepared for building a Docker container.","archived":false,"fork":false,"pushed_at":"2022-12-12T16:16:46.000Z","size":22,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-03T04:23:27.988Z","etag":null,"topics":["docker","docker-container","docker-image","node-js","tutorial"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yds12.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-05-03T10:24:45.000Z","updated_at":"2023-06-14T01:08:36.000Z","dependencies_parsed_at":"2023-06-07T01:00:31.211Z","dependency_job_id":null,"html_url":"https://github.com/yds12/minimal-containerized-webapp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yds12/minimal-containerized-webapp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yds12%2Fminimal-containerized-webapp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yds12%2Fminimal-containerized-webapp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yds12%2Fminimal-containerized-webapp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yds12%2Fminimal-containerized-webapp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yds12","download_url":"https://codeload.github.com/yds12/minimal-containerized-webapp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yds12%2Fminimal-containerized-webapp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"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":["docker","docker-container","docker-image","node-js","tutorial"],"created_at":"2024-11-14T01:19:47.392Z","updated_at":"2026-05-06T04:03:55.738Z","avatar_url":"https://github.com/yds12.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minimal Docker-containerized Web-app\n\nThis is a minimal Node.js/Express web-application prepared for building\na Docker container.\n\n## Instructions\n\n[Install Docker](https://docs.docker.com/engine/install/). Clone this\nrepository:\n\n    git clone https://github.com/yds12/minimal-containerized-webapp.git\n\nGo to the cloned repository directory (`cd minimal-containerized-webapp`), \nand build the docker image of the app:\n\n    docker build -t minwebapp .\n\nCheck that the image is listed by Docker:\n\n    docker images\n\nRun the image, specifying the environment variable PORT and mapping the\ncontainer port in the variable to port 3000 on the host machine:\n\n    docker run -e PORT=8080 -p 3000:8080 -d minwebapp\n\nThe option `-d` is for running the process in the background. Now check that\nthere is a running container:\n\n    docker ps\n\nTake note of the container ID and check the logs of that container:\n\n    docker logs \u003ccontainer-ID\u003e\n\nCheck that the webserver is responding successfully:\n\n    curl -v localhost:3000\n\nNow, kill the process:\n\n    docker kill \u003ccontainer-ID\u003e\n\nCheck the running containers again to see that it is not running anymore\n(`docker ps`). And remove the container:\n\n    docker image rm -f minwebapp\n\nCheck again the list of images to see that it is not there anymore \n(`docker images`).\n\nA nice tutorial for making a Dockerfile for Node.js can be found\n[here](https://nodejs.org/en/docs/guides/nodejs-docker-webapp/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyds12%2Fminimal-containerized-webapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyds12%2Fminimal-containerized-webapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyds12%2Fminimal-containerized-webapp/lists"}