Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker automated build Error: Build failed: Dockerfile not found at ./Dockerfile

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

like image 330
amitthk Avatar asked Nov 22 '16 07:11

amitthk


1 Answers

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.

like image 87
Bernardo D'Auria Avatar answered Sep 20 '22 11:09

Bernardo D'Auria