Skip to content

Commit

Permalink
Merge branch 'docker-wip' into SHIBUI-794
Browse files Browse the repository at this point in the history
  • Loading branch information
jj committed Sep 14, 2018
2 parents f15646f + b79f63d commit 310cfe2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM gcr.io/distroless/java

ARG JAR_FILE

COPY ${JAR_FILE} app.jar

EXPOSE 8080

CMD ["app.jar"]
11 changes: 11 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
id 'com.gorylenko.gradle-git-properties' version '1.4.21'
id 'net.researchgate.release' version '2.6.0'
id 'io.franzbecker.gradle-lombok' version '1.13'
id 'com.palantir.docker' version '0.20.1'
}

apply plugin: 'io.spring.dependency-management'
Expand Down Expand Up @@ -206,4 +207,14 @@ jacocoTestReport {
csv.enabled = false
html.destination = file("${buildDir}/jacocoHtml")
}
}

tasks.docker.dependsOn tasks.build
docker {
name 'unicon/shibui'
tags 'latest'
pull true
noCache true
files tasks.bootWar.outputs
buildArgs(['JAR_FILE': 'shibui.war'])
}

0 comments on commit 310cfe2

Please sign in to comment.