Optimize package installation in docker base image#32
Open
am97 wants to merge 1 commit intotypesense:masterfrom
Open
Optimize package installation in docker base image#32am97 wants to merge 1 commit intotypesense:masterfrom
am97 wants to merge 1 commit intotypesense:masterfrom
Conversation
This comment was marked as outdated.
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)
0fb62d9 to
a1809ef
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.59GBChange Summary
PR Checklist