Skip to content

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)
@am97 am97 force-pushed the docker_optimizations branch from 0fb62d9 to a1809ef Compare January 24, 2024 17:57
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