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 package installation in docker base image #32

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

Conversation

am97
Copy link

@am97 am97 commented Mar 29, 2023

This PR reduces significantly the size of the typesense/docsearch-scraper-base image by making some optimizations and removing Node.js, which has been in this project since the first commit but isn't used or documented.

The uncompressed size is reduced from 2.01GB (typesense/docsearch-scraper:0.9.1) to 1.59GB

Change Summary

  • Add --no-install-recommends option in order to install only what is required
  • Remove Node.js as it is not used by this project
  • Do not install sudo as it's not required
  • Limit the number of RUN
  • Delete apt cache: rm -rf /var/lib/apt/lists/*
  • Update google-chrome-stable (the old version isn't available anymore)

PR Checklist

@am97

This comment was marked as outdated.

- Add --no-install-recommends option in order to install only what is required
- Remove Node.js as it is not used by this project
- Do not install sudo as it's not required
- Limit the number of RUN
- Delete apt cache: rm -rf /var/lib/apt/lists/*
- Update google-chrome-stable (the old version isn't available anymore)
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