Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
//generates image like this: $
task image(type: Docker, dependsOn: build ) { = '' //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