Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

docker build timeout when libraries in requirements.txt or setup.py are too big #32

Closed
mazhiyi opened this issue Mar 4, 2021 · 1 comment · Fixed by #33
Closed

docker build timeout when libraries in requirements.txt or setup.py are too big #32

mazhiyi opened this issue Mar 4, 2021 · 1 comment · Fixed by #33

Comments

@mazhiyi
Copy link
Contributor

mazhiyi commented Mar 4, 2021

Tried a requirements file with

transformers
sentencepiece
torch
tensorflow

and docker build failed due to timeout

Need to either fix dockerfile, or add some large libraries in the base dockerfile by default.

@mazhiyi
Copy link
Contributor Author

mazhiyi commented Mar 4, 2021

Seems to be a common error and some useful posts
https://stackoverflow.com/questions/45082080/pip-unable-to-install-packages-inside-docker-container-on-mac
https://forums.docker.com/t/issue-with-installing-pip-packages-inside-a-docker-container-with-ubuntu/35107/4 (this one didn't work for me)

Basically it's about setting a correct proxy for pip install.

@mazhiyi mazhiyi linked a pull request Mar 4, 2021 that will close this issue
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant