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

Reduce image size #1

Open
thompsonmj opened this issue May 16, 2024 · 1 comment
Open

Reduce image size #1

thompsonmj opened this issue May 16, 2024 · 1 comment

Comments

@thompsonmj
Copy link
Contributor

Inspect container for contents that can be removed during the build to reduce its size.

@hlapp
Copy link
Member

hlapp commented May 16, 2024

FYI you might also consider a multi-stage build where you're first building some dependencies, copy the build products into their expected locations, and then build the "real" container off of that. This can save space if build dependencies that take up a considerable amount of space are not needed at runtime.

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

2 participants