Open arafatmohammed opened 5 years ago
Best guess is that the files you are trying to copy is not available at the time the docker command is executed. Take a look at the build/docker folder (docker build command is ran using this folder). Perhaps you can perform the copy closures in a separate tasks the the buildDocker task depend on. Might work
The plugin uses a "staging dir" which is then the directory the docker
command is run within. So the cause for the error you see is that the current work directory is not what you expect.
COPY build/libs/*.war /camunda/webapps/
Should simply be:
COPY *.war /camunda/webapps/
I am new to Gradle. I am trying to build a Dockerfile from within my build.gradle
Dockerfile
build.gradle
Output
./gradlew clean build buildDocker --info
I am able to build this image manually from the same Dockerfile using docker build -t but somehow it fails in Gradle buildDocker task.
It even works when I do not add the last two COPY
Dockerfile
But I have to COPY the other two artifacts as well.
My Docker plugin for Docker:
se.transmode.gradle:gradle-docker:1.2
Gradle Version:
Gradle 5.1.1
Please help me fix this.