So I have my automated build ( Docker hub web ui ) that points to my github repo. Then I want to have different Dockerfiles like Dockerfile.dev, Dockerfile.prod and so on.
The problem is that it only locates the Dockerfile on the given directory
The other problem is that it builds the image on that relative directory where Dockerfile is located. example: Repo is on “/” root directory then I add a /docker/dev/Dockerfile folder inside it so with this its relative path is on “/docker/dev/” and not on “/”.
Your understanding is correct. For now, you cannot specify specific Dockerfile and also the location you keep your Dockerfile, it is all the resources it can have access. You cannot even create symlinks to locate to parent folders. If we make changes, we would definitely let everyone know, like in cli.
What needs to update in the dockerfile section can someone help me to get a proper link on this path setting of dockerfile as am searching the solution but couldnt find anything on this and found same question on github and devopsforum.info also but didnt get solution any where so can some expert answer this clearly.
thanks in advance