{"id":15445191,"url":"https://github.com/jhermann/docker-golang-hi","last_synced_at":"2026-01-06T19:33:59.002Z","repository":{"id":141855133,"uuid":"152751518","full_name":"jhermann/docker-golang-hi","owner":"jhermann","description":":whale2: Example of a multi-stage golang build, with a run container ‘from scratch’","archived":false,"fork":false,"pushed_at":"2018-10-18T10:10:33.000Z","size":4,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T08:45:12.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/jhermann.png","metadata":{"files":{"readme":"README.rst","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-10-12T13:03:29.000Z","updated_at":"2019-01-09T00:49:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"425ce2b2-fb03-4b81-8eda-24788b89dbb3","html_url":"https://github.com/jhermann/docker-golang-hi","commit_stats":{"total_commits":6,"total_committers":1,"mean_commits":6.0,"dds":0.0,"last_synced_commit":"8ba9bcdacb966bf381e39cf01c182ce164093838"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermann%2Fdocker-golang-hi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermann%2Fdocker-golang-hi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermann%2Fdocker-golang-hi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhermann%2Fdocker-golang-hi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhermann","download_url":"https://codeload.github.com/jhermann/docker-golang-hi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991585,"owners_count":20706129,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-01T19:44:15.803Z","updated_at":"2026-01-06T19:33:58.948Z","avatar_url":"https://github.com/jhermann.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"================\ndocker-golang-hi\n================\n\n:Name:          jhermann/gohi\n:Description:   A golang multi-stage build container image example.\n:Maintainer:    Jürgen Hermann \u003cjh@web.de\u003e\n\nThe following commands build and run a golang binary from the source in ``hi.go``,\nputting it into a from-scratch Docker image.\n\n.. code-block:: shell\n\n   docker build -t jhermann/gohi -t jhermann/gohi:$(git describe --tags) .\n   docker run --rm -it jhermann/gohi\n\nIt doesn't get easier than this. ☺\n\nThe resulting image is only slightly larger than the contained golang binary.\n\n.. code-block:: console\n\n    $ dockviz images --tree jhermann/gohi\n    └─927b6ad2e4fa Virtual Size: 1.4 MB Tags: jhermann/gohi:latest, jhermann/gohi:v0-1-g93bf073\n\nTo look at the image's metadata, use ``docker inspect``:\n\n.. code-block:: shell\n\n    docker inspect jhermann/gohi:latest | jq -CS\n\nLeave out the ``jq`` part if you don't have that installed,\nit just colorizes the output.\n\nUsing `prom/busybox:glibc` instead of `scratch` adds 6 MB in size,\na shell, and the other debugging and introspection conveniences of a full base image.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhermann%2Fdocker-golang-hi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhermann%2Fdocker-golang-hi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhermann%2Fdocker-golang-hi/lists"}