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

Docker image is very large > 18GB? #11

Open
9876691 opened this issue Jan 4, 2024 · 2 comments
Open

Docker image is very large > 18GB? #11

9876691 opened this issue Jan 4, 2024 · 2 comments

Comments

@9876691
Copy link

9876691 commented Jan 4, 2024

Would it be possible to reduce the size of the image?

This gives us several issues

  • We can't use unstructured-api in a Gitgub actions as the virtual machine fills up.
  • The attack surface for this image is very large.
  • Deployments are slow

The main issue seems to be that the image includes the whole of libraoffice.

Here are the results from dive https://github.com/wagoodman/dive

dive

@awalker4
Copy link
Contributor

awalker4 commented Jan 17, 2024

Hi there! Apologies for the delay - this repo isn't super active, seems this may have slipped under the radar. Normally I'd expect an unstructured-api image to be 8GB tops. I tried analyzing the image from your screenshot and it comes in at 6.9. It does look like my base hash is different, so I'm wondering if we had uploaded a larger image by accident and replaced it. At one point we were preloading some of the ML models, but this shouldn't be the case in our public images. Can you delete the local image and try pulling again?

dive downloads.unstructured.io/unstructured-io/unstructured-api:4ffd8bc

@lambda-science
Copy link

Hi there! Apologies for the delay - this repo isn't super active, seems this may have slipped under the radar. Normally I'd expect an unstructured-api image to be 8GB tops. I tried analyzing the image from your screenshot and it comes in at 6.9. It does look like my base hash is different, so I'm wondering if we had uploaded a larger image by accident and replaced it. At one point we were preloading some of the ML models, but this shouldn't be the case in our public images. Can you delete the local image and try pulling again?

dive downloads.unstructured.io/unstructured-io/unstructured-api:4ffd8bc

Same issue, this image is 17.89go
image
image

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

No branches or pull requests

3 participants