Docker Community Forums

Share and learn in the Docker community.

Don't have a Dockerfile but required for Docker Hub image

hub
docker

(Mikefrancis) #1

Hi there,

I’m having a play around with Docker Compose and have got to the point where I have a very basic stack that I’d like to test out on some apps.

I figured the easiest way to do this would be upload the stack to Docker Hub and use a Dockerfile in the root of my apps which imports this image from Docker Hub.

When it’s come to creating an automated build from the GitHub repo, I get an error when building as my stack doesn’t have a Dockerfile in the root, as I’m using a docker-compose.yml to link everything together.

I can’t use an empty Dockerfile so just wondering what I should do?

Thanks in advance!