Closed jcchavezs closed 4 years ago
Not only is this possible in docker-compose but also with docker build:
docker build -f ../Dockerfile ./path
So this restriction seems unnecessary.
I also think this should be supported. It's already solved in docker repo and needs to be added here as well. see: https://github.com/docker/cli/pull/886
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Interesting how this issue is marked as stale even when no maintainers have given feedback or had a look at it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Does it make sense to accept issues on this repo if a bot is going to close them with no involvement from maintainers?
Being able to specify a path to a dockerfile makes sense to me: <dockerfile>${project.parent.basedir}/Dockerfile</dockerfile>
. The assumption that the Dockerfile is in the context is too rigid.
But after 9 months I won't hold my breath. I'll have to look for another Maven plugin. Any suggestions?
FEATURE REQUEST:
Description
Relax the condition where
dockerfile
should be a child element ofcontextDirectory
: https://github.com/spotify/dockerfile-maven/blob/15780af5df74e337fa4f67d564585b1ad7a9b47e/plugin/src/main/java/com/spotify/plugin/dockerfile/BuildMojo.java#L282. This is not an ideal restriction as for exampledocker-compose
allows to have something like:How to reproduce
What do you expect
Accept any location for dockerfile
What happened instead
Shows an error if it is not a child file
I can come up with a PR for this.