{"id":23539635,"url":"https://github.com/fuxu/gohello-from-scratch","last_synced_at":"2026-05-06T10:32:59.548Z","repository":{"id":150784283,"uuid":"120631357","full_name":"fuxu/gohello-from-scratch","owner":"fuxu","description":"Example of putting a Golang service into docker scratch image","archived":false,"fork":false,"pushed_at":"2018-03-23T12:14:34.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T16:45:13.956Z","etag":null,"topics":["docker","docker-image","docker-scratch","golang","multi-stage-build"],"latest_commit_sha":null,"homepage":"","language":"Go","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/fuxu.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}},"created_at":"2018-02-07T15:15:41.000Z","updated_at":"2018-03-23T12:34:26.000Z","dependencies_parsed_at":"2023-05-21T03:45:07.474Z","dependency_job_id":null,"html_url":"https://github.com/fuxu/gohello-from-scratch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fuxu/gohello-from-scratch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuxu%2Fgohello-from-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuxu%2Fgohello-from-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuxu%2Fgohello-from-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuxu%2Fgohello-from-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fuxu","download_url":"https://codeload.github.com/fuxu/gohello-from-scratch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fuxu%2Fgohello-from-scratch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32689143,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T08:33:17.875Z","status":"ssl_error","status_checked_at":"2026-05-06T08:33:17.221Z","response_time":117,"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":["docker","docker-image","docker-scratch","golang","multi-stage-build"],"created_at":"2024-12-26T04:39:54.813Z","updated_at":"2026-05-06T10:32:59.543Z","avatar_url":"https://github.com/fuxu.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"gohello\n==========\n\nThis is an example of putting a golang service into docker scratch image\n\nIt is almost the smallest possiable docker image\n\nPrepare\n----------\n```\n$ tar cv --files-from /dev/null | docker import - scratch\n```\n\nDocker Version \u003c 17.05\n----------\n```\n$ sh build.sh\n```\n\nDocker Version \u003e= 17.05\n----------\n```\n$ docker build -t fuxu/gohello -f Dockerfile.multi-stage .\n```\n\nRun\n----------\n```\n$ docker run -it --rm -p 8080:8080 --name hello fuxu/gohello\n```\n\nReference:\n----------\n- https://docs.docker.com/engine/userguide/eng-image/baseimages/#create-a-simple-parent-image-using-scratch\n- https://medium.com/@adriaandejonge/simplify-the-smallest-possible-docker-image-62c0e0d342ef\n- https://docs.docker.com/develop/develop-images/multistage-build/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuxu%2Fgohello-from-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuxu%2Fgohello-from-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuxu%2Fgohello-from-scratch/lists"}