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

Image size: reduce number of layers #9

Open
gipert opened this issue Aug 16, 2023 · 1 comment
Open

Image size: reduce number of layers #9

gipert opened this issue Aug 16, 2023 · 1 comment

Comments

@gipert
Copy link
Member

gipert commented Aug 16, 2023

Our Docker image is huge.

We should try reducing the number of layers, if we want a smaller image: https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#minimize-the-number-of-layers. There are many layers (for example, installing apt packages) that can be merged into a single one.

Might also consider using this? https://github.com/dockerce/docker-slim

@oschulz
Copy link
Collaborator

oschulz commented Aug 17, 2023

That's a very good point. The fairly fine grained layers are there make it more maintainable, but slimmer afterwards could definitely be an option. But if we want to move to Podman, maybe there's other tooling available too, afterwards?

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

No branches or pull requests

2 participants