{"id":16686961,"url":"https://github.com/paralin/scratchbuild","last_synced_at":"2025-03-21T18:33:24.691Z","repository":{"id":57517853,"uuid":"59057450","full_name":"paralin/scratchbuild","owner":"paralin","description":"Intelligently build Docker images from scratch for cross-architecture support.","archived":false,"fork":false,"pushed_at":"2024-10-04T16:58:14.000Z","size":111,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-13T15:07:29.119Z","etag":null,"topics":[],"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/paralin.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":"2016-05-17T20:44:02.000Z","updated_at":"2023-02-07T03:12:05.000Z","dependencies_parsed_at":"2023-10-03T00:54:26.232Z","dependency_job_id":"ff3bb12e-9fbe-407a-8907-bba6c1448180","html_url":"https://github.com/paralin/scratchbuild","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fscratchbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fscratchbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fscratchbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paralin%2Fscratchbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paralin","download_url":"https://codeload.github.com/paralin/scratchbuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221817677,"owners_count":16885596,"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-12T15:07:21.925Z","updated_at":"2024-10-28T10:37:20.583Z","avatar_url":"https://github.com/paralin.png","language":"Go","readme":"# Scratch Build\n\n[![GoDoc Widget]][GoDoc] [![Go Report Card Widget]][Go Report Card]\n\n[GoDoc]: https://godoc.org/github.com/paralin/scratchbuild\n[GoDoc Widget]: https://godoc.org/github.com/paralin/scratchbuild?status.svg\n[Go Report Card Widget]: https://goreportcard.com/badge/github.com/paralin/scratchbuild\n[Go Report Card]: https://goreportcard.com/report/github.com/paralin/scratchbuild\n\n## Introduction\n\nScratch Build is a small CLI tool that can successfully compile **from scratch** the majority of the Docker library images.\n\nImages are built by traversing the Dockerfile stack down to either scratch or a known working alternative for the target architecture, and then working up to the target.\n\nThis is VERY useful for rebuilding docker images on non-intel architectures.\n\n## Getting Started\n\nYou use `scratchbuild build` just like `docker build`:\n\n```\n$ scratchbuild build -t \"myname/myimage:latest-arm\" -f Dockerfile .\n```\n\nScratch Build will detect your target architecture (customizable with the flags), traverse the stack of `FROM` declarations, make a plan on how to build the container for the target arch, and then execute the plan in stages.\n\n## Build Quirks\n\nNote: you may have some errors when trying to build. In this case, try disabling CGO:\n\n```\nCGO_ENABLED=0 go build -v -o scratchbuild github.com/paralin/scratchbuild/cmd/scratchbuild\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalin%2Fscratchbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparalin%2Fscratchbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparalin%2Fscratchbuild/lists"}