Skip to content

Instantly share code, notes, and snippets.

@JacobASeverson
Last active August 29, 2015 14:21
Show Gist options
  • Save JacobASeverson/58e46d25d9f35cdf433b to your computer and use it in GitHub Desktop.
Save JacobASeverson/58e46d25d9f35cdf433b to your computer and use it in GitHub Desktop.
buildscript {
...
dependencies {
...
classpath('se.transmode.gradle:gradle-docker:1.2')
}
}
group = {your-docker-hub-id}
...
apply plugin: 'docker'
task buildDocker(type: Docker, dependsOn: build) {
push = true
applicationName = jar.baseName
dockerfile = file('src/main/docker/Dockerfile')
doFirst {
copy {
from jar
into stageDir
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment