Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Reduce docker :stable image size #68

Closed
su77ungr opened this issue May 16, 2023 · 6 comments · Fixed by #80
Closed

Reduce docker :stable image size #68

su77ungr opened this issue May 16, 2023 · 6 comments · Fixed by #80
Labels
docker enhancement New feature or request

Comments

@su77ungr
Copy link
Owner

su77ungr commented May 16, 2023

Problem:

  • Image size od stable >7GB
  • risking connection timeouts on low bandwidth users
@hippalectryon-0
Copy link
Contributor

I'm not sure I understand exactly what the issue is ?

@su77ungr
Copy link
Owner Author

su77ungr commented May 16, 2023

Docker image size is 7GB for some reason https://hub.docker.com/layers/su77ungr/casalioy/stable/images/sha256-4d06875414aa217f3254e51ad589077495e6e14f9ef972044d07422c9b480813?context=explore

Is this caused by cuda tools?

@su77ungr su77ungr changed the title Docker running HF on the fly Reduce docker :stable image size May 16, 2023
@su77ungr su77ungr added the enhancement New feature or request label May 16, 2023
@hippalectryon-0
Copy link
Contributor

7gb is too much, but a part is probably due to cuda. We can add it as optional in the poetry file.

@hippalectryon-0
Copy link
Contributor

hippalectryon-0 commented May 17, 2023

From https://github.com/hippalectryon-0/CASALIOY/tree/better-docker

user0@DESKTOP-Q3PBFPO:~/CASALIOY$ docker image history casalioy:latest 
IMAGE          CREATED          CREATED BY                                      SIZE      COMMENT
fda593445e09   42 seconds ago   /bin/sh -c #(nop) COPY file:648de41f54afe6f9…   613B             
f67cf731fe98   42 seconds ago   /bin/sh -c pip3 uninstall -y streamlit sente…   72.2MB           
579591ecff1c   54 seconds ago   /bin/sh -c pip3 install torch torchvision --…   925MB            
b2b90d314668   2 minutes ago    /bin/sh -c python3 -m poetry install            4.21GB                          
045d81b418d8   4 minutes ago    /bin/sh -c python3 -m poetry config virtuale…   248kB                           
23f73c9e9eaa   4 minutes ago    /bin/sh -c pip3 install poetry                  100MB                           
7c6a0ec932e0   4 minutes ago    /bin/sh -c git checkout better-docker           4.23kB                          
7f40ef97490c   5 minutes ago    /bin/sh -c #(nop) WORKDIR /srv/CASALIOY         0B

@hippalectryon-0
Copy link
Contributor

REPOSITORY TAG IMAGE ID CREATED SIZE
casalioy latest 46a3bc99c3cd 5 minutes ago 2.57GB

We're getting there !

@su77ungr
Copy link
Owner Author

sub 3 sounds reasonable. nice

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
docker enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants