{"id":13437736,"url":"https://github.com/kpcyrd/mini-docker-rust","last_synced_at":"2025-04-09T16:19:20.004Z","repository":{"id":37979400,"uuid":"89756282","full_name":"kpcyrd/mini-docker-rust","owner":"kpcyrd","description":"Very small rust docker image","archived":false,"fork":false,"pushed_at":"2024-01-07T18:11:57.000Z","size":33,"stargazers_count":231,"open_issues_count":0,"forks_count":22,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-09T16:19:11.772Z","etag":null,"topics":["alpine","docker","rust"],"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/kpcyrd.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":"2017-04-29T01:23:03.000Z","updated_at":"2025-03-30T13:13:12.000Z","dependencies_parsed_at":"2025-01-08T08:11:55.988Z","dependency_job_id":"3cf0c414-7fd8-47de-8978-d2a0b6beffda","html_url":"https://github.com/kpcyrd/mini-docker-rust","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":0.5,"last_synced_commit":"1ed9d27e998fc1f22d26f5c9b8aefe29dc6a290b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fmini-docker-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fmini-docker-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fmini-docker-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kpcyrd%2Fmini-docker-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kpcyrd","download_url":"https://codeload.github.com/kpcyrd/mini-docker-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065281,"owners_count":21041872,"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":["alpine","docker","rust"],"created_at":"2024-07-31T03:00:59.845Z","updated_at":"2025-04-09T16:19:19.986Z","avatar_url":"https://github.com/kpcyrd.png","language":"Dockerfile","readme":"# mini-docker-rust ![docker-github-action](https://github.com/kpcyrd/mini-docker-rust/actions/workflows/test-docker.yml/badge.svg)\n\nVery small rust docker image.\n\nThis is an example project on how to build very small docker images for a rust project. The resulting image for a working `hello world` was 5.69MB in the case of Alpine 3.16. Alpine versions have changed in size with past releases (see below a table with historic sizes of the docker images). Using end-of-life Alpine/Rust releases is not advised (even if they might be slightly smaller). Checked sizes with `docker system df -v`\n\n| Alpine      | Size   |\n| ----------- | ------ |\n| alpine:3.19 | 8.22MB |\n| alpine:3.18 | 8.22MB | \n| alpine:3.17 | 7.95MB | \n| alpine:3.16 | 5.69MB | \n| alpine:3.15 | 5.74MB |\n| alpine:3.14 | 5.73MB |\n\nThis repo is trying to keep the docker overhead to a minimum without sacrificing performance or the usability implications of using `FROM scratch`. If you want to reduce the binary size further you might be interested in [johnthagen/min-sized-rust](https://github.com/johnthagen/min-sized-rust).\n\n## See for yourself\n\nYou don't need to install anything besides docker. Build with `docker build -t mini-docker-rust .` and run with `docker run mini-docker-rust`.\n\n## Annotated docker file\n\nSee [Dockerfile](Dockerfile).\n","funding_links":[],"categories":["Development tools","开发工具 Development tools","开发工具","Dockerfile"],"sub_categories":["Deployment","部署 Deployment","部署"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpcyrd%2Fmini-docker-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkpcyrd%2Fmini-docker-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkpcyrd%2Fmini-docker-rust/lists"}