Commit b9a1e0ac authored by Yannick Kirschhoffer's avatar Yannick Kirschhoffer

Upgrade target build to Java 11.

parent 7e95b311
Pipeline #42259688 failed with stages
in 1 minute and 11 seconds
FROM openjdk:8-jdk as BUILD
FROM openjdk:11-jdk as BUILD
WORKDIR /usr/src/app
COPY . .
RUN ./gradlew --no-daemon build
FROM openjdk:8-jre
FROM openjdk:11-jre
COPY --from=BUILD /usr/src/app/build/libs /opt/target
COPY application-production.yml /opt/target
WORKDIR /opt/target
CMD ["/bin/bash", "-c", "find -type f -name 'socializer-*.jar' | xargs java -Dspring.profiles.active=production -Xmx128m -jar"]
CMD ["/bin/bash", "-c", "find -type f -name 'socializer-*.jar' | xargs java -Dspring.profiles.active=production -Xmx64m -jar"]
......@@ -25,7 +25,7 @@ apply plugin: 'io.spring.dependency-management'
group = 'org.alcibiade'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 8
sourceCompatibility = 11
repositories {
mavenCentral()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment