I have been trying to debug why my codes failed to get pass the build image stage.
On two occasions, my codes managed to get to the prediction #146503 #146501
I noticed that the only difference between successful and unsuccessful build is the first few lines of the error log.
When I get the following line, the image build will be successful.
It is basically checking for your docker image in the cached list of images, and when it starts building as soon as it doesn’t find the image.
The real reason for your docker build failure is wrong package name in pypi packages list (requirements.txt), and trying to download file from internet during runtime.