Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Considerations about a slimmer container base image than Ubuntu #119

Open
ColorfulRhino opened this issue Oct 11, 2024 · 0 comments
Open

Comments

@ColorfulRhino
Copy link

Hello! Currently Ubuntu is used as base image for creating this container:

FROM ubuntu:24.04

The Ubuntu base image is pretty fat, meaning a larger attack surface, a bigger size (80MB vs for example Alpine with <10MB) as well as possibly slightly worse performance on resource-constrained systems like Raspberry Pi's (untested claim).
Have you considered using a slimmer base image like Alpine, Wolfi or Distroless (or even UBI)?

You switched from using Alpine to Ubuntu in 2019 because "Rust doesn't work well with musl-libc" (quote from the linked commit message). These issues seem to be largely resolved by now, there is also an official up-to-date Rust package in the Alpine package repository.
The other mentioned base images like Wolfi do not use musl altogether.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant