From a2e52f589c3afef66dd901c66b7fa3d7d852f355 Mon Sep 17 00:00:00 2001 From: Carl Wilson Date: Fri, 15 Sep 2023 11:48:19 +0100 Subject: [PATCH] FIX: Docker SSL URL downloads - added `jdk.crypto.ec` to the custom JRE build in both Dockerfiles. --- Dockerfile | 2 +- Dockerfile_dev | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f05f3083..0bbff43a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ FROM eclipse-temurin:11 as jre-builder # Create a custom Java runtime RUN "$JAVA_HOME/bin/jlink" \ - --add-modules java.base,java.logging,java.xml,java.management,java.sql,java.desktop \ + --add-modules java.base,java.logging,java.xml,java.management,java.sql,java.desktop,jdk.crypto.ec \ --strip-debug \ --no-man-pages \ --no-header-files \ diff --git a/Dockerfile_dev b/Dockerfile_dev index 662c1a34..bd8383f1 100644 --- a/Dockerfile_dev +++ b/Dockerfile_dev @@ -20,7 +20,7 @@ FROM eclipse-temurin:11 as jre-builder # Create a custom Java runtime RUN "$JAVA_HOME/bin/jlink" \ - --add-modules java.base,java.logging,java.xml,java.management,java.sql,java.desktop \ + --add-modules java.base,java.logging,java.xml,java.management,java.sql,java.desktop,jdk.crypto.ec \ --strip-debug \ --no-man-pages \ --no-header-files \ @@ -37,6 +37,10 @@ ENV JAVA_OPTS=$JAVA_OPTS ARG VERAPDF_REST_VERSION ENV VERAPDF_REST_VERSION=${VERAPDF_REST_VERSION:-0.2.0-SNAPSHOT} +# RUN apt-get update && apt-get install -y --no-install-recommends \ +# ssl-cert \ +# ca-certificates-java \ +# && rm -rf /var/lib/apt/lists/* COPY --from=dev-builder /usr/local/bin/dumb-init /usr/local/bin/dumb-init RUN chmod +x /usr/local/bin/dumb-init