Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Google provides distroless docker images that only contains little basic components (no c runtime, no openssl, no OS itself) so they're very tiny. You can check https://github.com/GoogleContainerTools/distroless/tree/main/base for these images.
If you need an example, you can check my Containerfile here. I build my binary that targets musl on rust:alpine-3.16 image, and then moving built binary to gcr.io/distroless/static image. And as I explained above, since distroless images contains almost nothing, my docker image size is just 9MiB (6MiB is my built project).
It's kind of old and probably outdated, but I did something similar. Take a look at the repo if you like.