From 9b357df85ce168f58362fd1f679489523169e6fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Wenzel?= Date: Tue, 27 Jul 2021 09:17:28 +0200 Subject: [PATCH] Fix tomcat issue for unknown namedcurves --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0b6ae2b..22d2979 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,4 @@ +FROM gcr.io/distroless/java:8 AS SECURITY FROM openjdk:8 AS BUILD COPY . /opt @@ -5,6 +6,8 @@ WORKDIR /opt RUN ./mvnw clean install -DskipTests ENV JAVA_RANDOM="file:/dev/./urandom" + +COPY --from=SECURITY /etc/java-8-openjdk/security/java.security /usr/local/openjdk-8/jre/lib/security/java.security RUN echo "networkaddress.cache.ttl=60" >> /usr/local/openjdk-8/jre/lib/security/java.security RUN sed -i -e "s@^securerandom.source=.*@securerandom.source=${JAVA_RANDOM}@" /usr/local/openjdk-8/jre/lib/security/java.security