Skip to content

Commit

Permalink
Fix tomcat issue for unknown namedcurves
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Wenzel committed Jul 27, 2021
1 parent dee67f3 commit 9b357df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM gcr.io/distroless/java:8 AS SECURITY
FROM openjdk:8 AS BUILD

COPY . /opt
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

Expand Down

0 comments on commit 9b357df

Please sign in to comment.