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

refactor(Dockerfile): optimize Dockerfile structure and layers #898

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

k1lgor
Copy link
Contributor

@k1lgor k1lgor commented Oct 11, 2024

Improvements

  • single layer installation
  • no cache with pip
  • consolidation of python dependencies
  • removal of temp files

As you can see on the image below, the last two builds are with the current state of Dockerfile, and the first two are with the improvements. There is significant build time improvement and slight image size reduction for gpt-researcher image, about 300-400MB. I used docker compose up -d --build.
image

@assafelovic assafelovic merged commit 428bed6 into assafelovic:master Oct 14, 2024
@assafelovic
Copy link
Owner

This is great thank you!

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