I am getting empty Dockerfile in my Docker Hub repository when I am trying to set Automated Build. If I trigger the build:-
Build failed: Dockerfile not found at ./Dockerfile
I followed the steps from this page:- https://docs.docker.com/docker-hub/builds/
I pointed the docker hub repository to my github public repository and allowed the requested permissions as suggested.
Later on I renamed the "dockerfile" into "Dockerfile" thinking it may be due to the case sensitive file name - it didn't work either.
Can anybody help what I am doing wrong.
I also noticed someone experiencing similar problem in below thread but that was the case when Build showed "Pending". For me, the build shows "Error" and Dockerfile is empty.
Docker automated build shows empty Dockerfile
I had a similar problem. In my case it was due to the fact that the Dockerfile was in lowercase. However renaming it locally does not change it on github, as it is not perceived as a change. After renaming it directly in the repository everything worked fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With