{"id":19975191,"url":"https://github.com/gabepublic/docker-staticsite-nginx","last_synced_at":"2026-04-29T09:09:01.594Z","repository":{"id":129581747,"uuid":"522068096","full_name":"gabepublic/docker-staticsite-nginx","owner":"gabepublic","description":"Docker - a very simple static site (html, css, JS) running on nginx","archived":false,"fork":false,"pushed_at":"2022-08-10T17:41:57.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-18T07:46:51.284Z","etag":null,"topics":["container","docker","nginx","website"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gabepublic.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":"2022-08-06T22:38:12.000Z","updated_at":"2022-12-20T19:12:39.000Z","dependencies_parsed_at":"2023-03-16T15:30:49.312Z","dependency_job_id":null,"html_url":"https://github.com/gabepublic/docker-staticsite-nginx","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabepublic/docker-staticsite-nginx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fdocker-staticsite-nginx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fdocker-staticsite-nginx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fdocker-staticsite-nginx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fdocker-staticsite-nginx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabepublic","download_url":"https://codeload.github.com/gabepublic/docker-staticsite-nginx/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabepublic%2Fdocker-staticsite-nginx/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32418291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["container","docker","nginx","website"],"created_at":"2024-11-13T03:17:24.867Z","updated_at":"2026-04-29T09:09:01.578Z","avatar_url":"https://github.com/gabepublic.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-staticsite-nginx\n\nDocker application for a very simple static site (html, css, and JS) \nrunning on nginx.\n\n## Prerequisite\n\n- Docker Engine - see [Install Docker Engine on Ubuntu](https://docs.docker.com/engine/install/ubuntu/)\n\n\n## Setup\n\n- Clone this repo\n\n- The following tasks can be performed manually or by running the scripts\n  included with this repo.\n\n- To run the scripts, you need to make them executable first\n```\n$ cd \u003cproject_folder\u003e/docker-staticsite-nginx\n$ chmod +x *.sh\n```\n\n- [Optional] To do it manually, copy the command inside the script file\n\n## Develop\n\n- Build docker image\n```\n$ cd \u003cproject_folder\u003e/docker-staticsite-nginx\n$ ./build-image.sh\n\n$ docker images\nREPOSITORY                    TAG                 IMAGE ID       CREATED         SIZE\ngabepublic/staticsite-nginx   0.1.0-linux-amd64   05721d44f4ef   5 minutes ago   23.6MB\nnginx                         alpine              e46bcc697531   2 weeks ago     23.5MB\n```\n\n- Run the docker application\n```\n$ cd \u003cproject_folder\u003e/docker-staticsite-nginx\n$ ./run.sh\n\n$ docker ps\nCONTAINER ID   IMAGE                                           COMMAND                  CREATED         STATUS         PORTS                                   NAMES\n88ee228a80f6   gabepublic/staticsite-nginx:0.1.0-linux-amd64   \"nginx -g 'daemon of…\"   6 seconds ago   Up 5 seconds   0.0.0.0:8080-\u003e80/tcp, :::8080-\u003e80/tcp   static\n```\n\n- Stop the docker application\n```\n$ docker stop \u003cCONTAINER-ID\u003e\n\n$ docker ps\nCONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES\n```\n\n- Deploy to Docker Hub\n```\n$ docker login\n#provide Docker Hub id and password\nWARNING! Your password will be stored unencrypted in /root/.docker/config.json.\nConfigure a credential helper to remove this warning. See\nhttps://docs.docker.com/engine/reference/commandline/login/#credentials-store\n\n$ docker push gabepublic/staticsite-nginx:0.1.0-linux-amd64\n[...]\n0.1.0-linux-amd64: digest: sha256:e1301bcc996e0e975fa083eb79ab0d970018ea809b1bc76f0a10b10d2c98ae64 size: 1984\n\n$ docker logout\n```\n\n\n## CLEANUP\n\n- Delete docker image\n```\n$ docker image rm \u003cIMAGE-ID\u003e\n```\n\n## References\n\n- https://docker-curriculum.com/\n\n- [How to Serve a Static App with nginx in Docker](https://typeofnan.dev/how-to-serve-a-static-app-with-nginx-in-docker/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabepublic%2Fdocker-staticsite-nginx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabepublic%2Fdocker-staticsite-nginx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabepublic%2Fdocker-staticsite-nginx/lists"}