{"id":20483673,"url":"https://github.com/cbuschka/distrolessdocker","last_synced_at":"2026-05-21T16:31:56.529Z","repository":{"id":95275669,"uuid":"186230080","full_name":"cbuschka/distrolessdocker","owner":"cbuschka","description":"Distroless docker container with statically linked binaries in different languages","archived":false,"fork":false,"pushed_at":"2021-10-20T16:03:36.000Z","size":1021,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-16T04:24:45.706Z","etag":null,"topics":["distroless","docker"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/cbuschka.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","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":"2019-05-12T08:31:16.000Z","updated_at":"2024-07-27T07:16:59.000Z","dependencies_parsed_at":"2023-03-20T12:57:07.254Z","dependency_job_id":null,"html_url":"https://github.com/cbuschka/distrolessdocker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fdistrolessdocker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fdistrolessdocker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fdistrolessdocker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cbuschka%2Fdistrolessdocker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cbuschka","download_url":"https://codeload.github.com/cbuschka/distrolessdocker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242058212,"owners_count":20065066,"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":["distroless","docker"],"created_at":"2024-11-15T16:18:26.410Z","updated_at":"2026-05-21T16:31:51.496Z","avatar_url":"https://github.com/cbuschka.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Distroless docker container with statically linked binaries in different languages\n\n## Background\nA docker container is called \"distroless\" when it is not based on a linux distribution, it is created \"FROM scratch\". The docker image then consists of a single binary only. The only interface the binary can utilize is the kernel call api, because there are no other libs in the image.\n\nPro:\n- small attack vector\n- light footprint\n\nContra:\n- ???\n\nThis is a collection of programs written in different languages that can be linked statically and so can serve for a distroless docker container.\n\n## Prerequisites\n* make\n* docker\n\nNote: All variants are compiled within docker containers, so no variant specific dependencies must be installed.\n\n## Summary\n\n| Language  | Compiler | Size (Bytes) | Type | Status | Notes |   \n|-----------|------|------|------|------|-------|\n| [ADA](./ada) | gnat | 1080256 | statically linked | OK | |\n| [x86 Assembler](./asm) | gasm | 776  | statically linked | OK |       |\n| [C](./c)  |  gcc |967264 | statically linked | OK |       |\n| [C++](./cpp) | g++ | 2249328 | statically linked | OK |       |\n| [D](./d) | DMD |  | | BROKEN | problems with static linking, PIC and PIE, seg faults |\n| [Fortran](./fortran) | gfortran | 1096488 | statically linked | OK |       |\n| [Golang](./go) | (standard) | 1997487 | statically linked | OK |       |\n| [Haskell](./haskell) | (standard) | 2363384 | statically linked | OK |       |\n| [Java](./java-gcj) | gcj | | | NO CHANCE | gcj is dead; seems that libgcj.a has never been delivered |\n| [Java](./java-graalvm) | graalvm | 8074624 | statically linked | OK | |\n| [Lisp](./lisp) | sbcl |  | | BROKEN | doesn't link statically, yet |\n| [Nim](./nim) | (standard) | 957808 | statically linked | OK |\n| [Ocaml](./ocaml) | ocaml | 1795392 | statically linked | OK |       |\n| [Pascal](./pascal) | freepascal | 176424 | statically linked | OK |       |\n| [Rust](./rust) | (standard) | 1931280 | statically linked | OK |       |\n\n## Usage\n\n```\nfor variant in ada asm c cpp fortran go haskell java-graalvm nim ocaml pascal rust; do cd ${variant}; make run; cd -; done\n```\n\n## License\n[MIT](./license.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbuschka%2Fdistrolessdocker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcbuschka%2Fdistrolessdocker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcbuschka%2Fdistrolessdocker/lists"}