Help dockerizing a rocket server with a small image.

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • distroless

    🥑 Language focused docker images, minus the operating system.

  • 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.

  • discorss

    Discontinued Easily self-hostable RSS reader bot for Discord. WIP

  • 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).

  • 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.

    InfluxDB logo
  • tsuki

    Experiment with smallest possible binary size with Rust (by sverrejb)

  • It's kind of old and probably outdated, but I did something similar. Take a look at the repo if you like.

  • min-sized-rust

    🦀 How to minimize Rust binary size 📦

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts