-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
34 lines (26 loc) · 924 Bytes
/
Copy pathbuild.gradle
File metadata and controls
34 lines (26 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import com.bmuschko.gradle.docker.tasks.image.*
plugins {
id 'application'
id 'io.ratpack.ratpack-java' version '1.5.0'
id "com.bmuschko.docker-remote-api" version "3.2.1"
}
mainClassName = 'com.github.gregwhitaker.ratpackdocker.example.Main'
sourceCompatibility = 1.8
repositories {
jcenter()
}
dependencies {
compile ratpack.dependency("guice")
compile 'com.github.gregwhitaker:ratpack-error:1.5.0'
runtime 'org.slf4j:slf4j-simple:1.7.22'
testCompile 'junit:junit:4.12'
}
distZip {
// You only need to set this if you have specified an archive version. This removes the version number
// from the final distribution package which makes it easier to script in your Dockerfile.
archiveName = 'ratpack-docker-example.zip'
}
task buildImage(type: DockerBuildImage) {
inputDir = new File("${projectDir}")
dockerFile = new File("${projectDir}/src/docker/Dockerfile")
}