-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
35 lines (28 loc) · 754 Bytes
/
Copy pathbuild.gradle
File metadata and controls
35 lines (28 loc) · 754 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
35
plugins {
id 'java'
id 'org.springframework.boot' version '2.4.0'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'com.palantir.docker' version '0.25.0'
id 'com.palantir.docker-run' version '0.25.0'
}
group 'org.webapp'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation project(':webapp')
implementation 'org.springframework.boot:spring-boot-starter-web'
}
String imageName = "csankhala/${project.name.toLowerCase()}:$version"
docker {
name imageName
files "build/libs/${bootJar.archiveFileName.get()}"
buildArgs([JAR_FILE: bootJar.archiveFileName.get()])
}
dockerRun {
name project.name
image imageName
ports '8080:8080'
clean true
}