Skip to content

Considerations about a slimmer container base image than Ubuntu #119

@ColorfulRhino

Description

@ColorfulRhino

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions