gradle build with docker fixed

This commit is contained in:
Adam Kulawik
2018-11-02 21:27:04 +01:00
parent b2ad52cc34
commit b139f01341
2 changed files with 2 additions and 1 deletions

View File

@@ -2,5 +2,5 @@ FROM openjdk:8u171-jdk-alpine3.7
MAINTAINER Michał Michaluk <michal.michaluk@bottega.com.pl>
EXPOSE 8080
COPY target/app.jar app.jar
COPY build/libs/app.jar app.jar
ENTRYPOINT ["java", "-jar","/app.jar", "--spring.profiles.active=docker"]

View File

@@ -22,6 +22,7 @@ dependencies {
[bootJar, bootRun]*.enabled = true
jar.enabled = false
bootJar.archiveName='app.jar'
task stubsJar(type: Jar) {
classifier = "stubs"