Transmode / gradle-docker

A Gradle plugin to build Docker images from the build script.
Apache License 2.0
647 stars 142 forks source link

Provide option to Dockerfile name equivalent #143

Open SamD opened 6 years ago

SamD commented 6 years ago

Providing the dockerFile setting sets the path for the docker build command to be the directory of the Dockerfile

Docker provides -f, --file string Name of the Dockerfile (Default is 'PATH/Dockerfile') which permits the name of the file thus allowing the working directory from which docker build is launched to remain the same, this permits the use of relative paths outside of the directory where the Dockerfile is located.