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 “/”.