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

Improve Dockerfile to reduce image size #76

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tdurieux
Copy link

@tdurieux tdurieux commented Jan 6, 2023

Hi there,

Thanks for maintaining ytdl-webserver. I've made a small improvement to the Dockerfile that I think could help optimize the image size.

Summary of Changes:

  • Using the --no-install-recommends flag with apt-get install in a Dockerfile helps save layer space, improve build times, and reduce the size and attack surface of the final image, as well as prevent hidden dependencies.

Impact on the image size:

  • Image size before repair: 634.72 MB
  • Image size after repair: 429.27 MB
  • Difference: 205.45 MB (32.37%)

Thanks,

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.

1 participant