Dockerfiile update

This commit is contained in:
Diamantis Tziotzios 2021-10-13 18:17:53 +03:00
parent e8366aa61a
commit 887789d9e5
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
FROM maven:3-jdk-8-alpine AS MAVEN_BUILD FROM maven:3-openjdk-11 AS MAVEN_BUILD
COPY pom.xml /build/ COPY pom.xml /build/
COPY data /build/data/ COPY data /build/data/
@ -9,7 +9,7 @@ COPY web /build/web/
WORKDIR /build/ WORKDIR /build/
RUN mvn package RUN mvn package
FROM openjdk:8-jre-alpine FROM adoptopenjdk/openjdk11:alpine-jre
WORKDIR /app WORKDIR /app
COPY --from=MAVEN_BUILD /build/web/target/web-1.0-SNAPSHOT.jar /app/app.jar COPY --from=MAVEN_BUILD /build/web/target/web-1.0-SNAPSHOT.jar /app/app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROF}", "-Dspring.config.location=/files/config/", "-jar","/app/app.jar"] ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=${PROF}", "-Dspring.config.location=/files/config/", "-jar","/app/app.jar"]