Skip to content

Commit

Permalink
- switch to openjdk:8-jre-alpine
Browse files Browse the repository at this point in the history
- remove latest tag push
  • Loading branch information
spolnik committed Jul 1, 2018
1 parent 16a1c4f commit 5a06392
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:8
FROM openjdk:8-jre-alpine

MAINTAINER Jacek Spolnik <jacek.spolnik@gmail.com>

Expand Down
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ task releaseZip(type: Zip, dependsOn: 'bootJar') {
}

task buildDockerImage(type: Exec, dependsOn: 'bootJar') {
commandLine 'docker', 'build', '-t', "spolnik/${rootProject.name}:latest", '-t', "spolnik/${rootProject.name}:${version}", '.'
commandLine 'docker', 'build', '-t', "spolnik/${rootProject.name}:${version}", '.'
}

task pushDockerImages(type: Exec, dependsOn: 'buildDockerImage') {
commandLine 'docker', 'push', "spolnik/${rootProject.name}:latest"
commandLine 'docker', 'push', "spolnik/${rootProject.name}:${version}"
}

0 comments on commit 5a06392

Please sign in to comment.