- Notifications
You must be signed in to change notification settings - Fork23
Very small rust docker image
License
kpcyrd/mini-docker-rust
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Very small rust docker image.
This is an example project on how to build very small docker images for a rust project. The resulting image for a workinghello 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 withdocker system df -v
Alpine | Size |
---|---|
alpine:3.19 | 8.22MB |
alpine:3.18 | 8.22MB |
alpine:3.17 | 7.95MB |
alpine:3.16 | 5.69MB |
alpine:3.15 | 5.74MB |
alpine:3.14 | 5.73MB |
This repo is trying to keep the docker overhead to a minimum without sacrificing performance or the usability implications of usingFROM scratch
. If you want to reduce the binary size further you might be interested injohnthagen/min-sized-rust.
You don't need to install anything besides docker. Build withdocker build -t mini-docker-rust .
and run withdocker run mini-docker-rust
.
SeeDockerfile.
About
Very small rust docker image
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.