{"id":21964548,"url":"https://github.com/intob/jgocker","last_synced_at":"2026-05-02T10:35:57.016Z","repository":{"id":222193981,"uuid":"756503709","full_name":"intob/jgocker","owner":"intob","description":"My FROM scratch for Go","archived":false,"fork":false,"pushed_at":"2024-03-08T23:39:48.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T12:16:13.487Z","etag":null,"topics":["docker"],"latest_commit_sha":null,"homepage":"","language":null,"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/intob.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":"2024-02-12T19:34:58.000Z","updated_at":"2024-03-18T18:35:32.000Z","dependencies_parsed_at":"2024-11-29T12:24:45.910Z","dependency_job_id":"ef343883-485e-4f82-ab48-3faab6eeb257","html_url":"https://github.com/intob/jgocker","commit_stats":null,"previous_names":["intob/jgocker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/intob/jgocker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intob%2Fjgocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intob%2Fjgocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intob%2Fjgocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intob%2Fjgocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intob","download_url":"https://codeload.github.com/intob/jgocker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intob%2Fjgocker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32531742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":["docker"],"created_at":"2024-11-29T12:24:41.284Z","updated_at":"2026-05-02T10:35:56.994Z","avatar_url":"https://github.com/intob.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"```dockerfile\n# Thanks to https://github.com/chemidy/smallest-secured-golang-docker-image\n#\n# STEP 1 build executable binary\n#\nFROM golang:alpine as builder\n\n# Set the current working directory inside the container\nWORKDIR /app\n\n# Copy app files\nCOPY . /app\n\n# 1. Install git, ca-certs, and timezone data\n# 2. Write commit hash to a file\n# 3. Build the static binary\nRUN apk update \\\n    \u0026\u0026 apk add --no-cache \\\n      git \\\n      ca-certificates \\\n      tzdata \\\n    \u0026\u0026 update-ca-certificates \\\n    \u0026\u0026 git rev-parse --short HEAD \u003e commit \\\n    \u0026\u0026 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build \\\n      -ldflags='-w -s -extldflags \"-static\"' \\\n      -mod=readonly \\\n      -a \\\n      -o yourapp .\n\n#\n# STEP 2 build small image\n#\nFROM scratch\n\n# Copy zoneinfo for time zone support\nCOPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo\n# Copy ca-certs for SSL support\nCOPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt\n# Copy binary and app files\nCOPY --from=builder /app/yourapp /yourapp\nCOPY --from=builder /app/commit /commit\n\nENTRYPOINT [\"/yourapp\"]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintob%2Fjgocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintob%2Fjgocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintob%2Fjgocker/lists"}