-
Hello, I'm a bit lost with the build of a docker image. I want to add the build of a Docker image and the build failed because of file not found. I'm in the good folder when executing goreleaser but maybe the dir field places the program in the wong directory. I'm adding a Dockerfile at the root of the project and here is my gitreleaser configuration file :
The Dockerfile :
I know I could do simpler but I like the idea of multi stage build. Hereis the error :
Even if I write the Dockerfile as the docker build was executedin src dir, I've got same error. So where is executed docker build ? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Understood the problem by using the --debug parameter of goreleaser. I've added extra_files in the configuration file, everything works well. Sorry for this post. |
Beta Was this translation helpful? Give feedback.
Understood the problem by using the --debug parameter of goreleaser.
the temporary directory contains just the binary and the Dockerfile.
I've added extra_files in the configuration file, everything works well. Sorry for this post.