docker build timeout when libraries in requirements.txt or setup.py are too big
mazhiyi opened this issue · 1 comments
mazhiyi commented
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 commented
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.