-
Notifications
You must be signed in to change notification settings - Fork 445
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sbt docker:stage fails but sbt docker:publishLocal works #1006
Comments
Thanks for you bug report and sorry for the late reply. IIRC the dockerfile is placed in two places. In which directory are you executing your docker build command? I guess if you go one level up or down, it will work. I haven't found the pull request/commit yet where this was introduced. There was a reason plausible for docker at that time (at least it sounded plausible). However this has led to too much confusion and we should remove these double-dockerfile output ( if this is the actual root cause for your issue ). |
So as you can see from my post, I'm executing the docker:stage command in the directory where the Dockerfile is written - which is the target/docker directory. Could you please let me know where the other Dockerfile is being written? |
When you run
As you can see there are two Dockerfiles. If you take a look inside the Dockerfile you'll see the line
which assumes an |
@joesan any updates on this? Or can I close the issue? |
Expected behaviour
sbt docker:stage produced Dockerfile should build when doing docker build ...
Actual behaviour
The following is what happens when issuing docker build command
But when I run sbt docker:publishLocal, I can see that the image is published successfully to my local docker repository! So here is the output of sbt docker:publishLocal
Information
The text was updated successfully, but these errors were encountered: