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

Optimize Dockerfile to reduce image size #14

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

PeterDaveHello
Copy link
Contributor

Implement best practices for package management to minimize unnecessary data in Docker image. Remove APT cache after installation and prevent pip from creating cache files. These changes result in a smaller and more efficient Docker image.

Implement best practices for package management to minimize unnecessary
data in Docker image. Remove APT cache after installation and prevent
pip from creating cache files. These changes result in a smaller and
more efficient Docker image.
@spawnia spawnia merged commit 20e671d into spawnia:master Aug 11, 2024
2 checks passed
@spawnia
Copy link
Owner

spawnia commented Aug 11, 2024

Thanks, got a nice 30MB reduction in image size!

@PeterDaveHello PeterDaveHello deleted the Dockerfile branch August 11, 2024 20:02
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

Successfully merging this pull request may close these issues.

2 participants