From b9869245fb1fc87aa697172572d2ef5d5e6cbabe Mon Sep 17 00:00:00 2001 From: Andreas Scheibal Date: Tue, 11 Apr 2023 19:24:27 +0200 Subject: [PATCH] fix: Docker using JDK 17 base image (#218) * fix: Docker using JDK 17 base image Changes to be committed: modified: Dockerfile * chore: update deps --- Dockerfile | 9 ++++++--- pom.xml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5b73f265..e0678679 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM adoptopenjdk:11-jre-hotspot +FROM eclipse-temurin:17-jre WORKDIR / @@ -6,8 +6,11 @@ COPY [ "./target/docker/dgcg.jar", "/dgcg.jar" ] ENV JAVA_OPTS="$JAVA_OPTS -Xms256M -Xmx1G" -EXPOSE 8080 +EXPOSE 8090 + +RUN mkdir /logs +RUN chown 65534:65534 /logs USER 65534:65534 -ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /dgcg.jar" ] +ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Dspring.profiles.active=dev -Djava.security.egd=file:/dev/./urandom -jar /dgcg.jar" ] diff --git a/pom.xml b/pom.xml index 052ff566..a8e82bef 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ org.springframework.cloud spring-cloud-starter-parent - 2022.0.1 + 2022.0.2