Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//generates image like this: $project.group/applicationName:tagVersion
task image(type: Docker, dependsOn: build ) {
project.group = '' //this prevents the generated image from having the group value added. Personal preference to do this
applicationName = "yourapp"
dockerfile = file('Dockerfile')
tagVersion = 'latest'
doFirst {
copy {
from jar
into "${stageDir}/target"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.