File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ ARG JAVA_VERSION=11
33# Use the specified version of Java
44FROM public.ecr.aws/lambda/java:${JAVA_VERSION}
55
6- # Argument for Java tool options for ssl
7- ARG JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustStore=/var/lang/lib/security/cacerts "
8- # Set the JAVA_TOOL_OPTIONS environment variable for Java 17
9- ENV JAVA_TOOL_OPTIONS=${JAVA_TOOL_OPTIONS}
6+ # Argument for Java tool options
7+ ARG JAVA_TOOL_OPTIONS=""
8+ # Set the JAVA_TOOL_OPTIONS environment variable for Java 17 and always include default truststore to avoid SSL handshake issues
9+ ENV JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustStore=/var/lang/lib/security/cacerts ${JAVA_TOOL_OPTIONS}"
1010
1111# Install necessary tools
1212RUN yum update -y
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ ARG JAVA_VERSION=11
33# Use the specified version of Java
44FROM public.ecr.aws/lambda/java:${JAVA_VERSION}
55
6- # Argument for Java tool options for ssl
7- ARG JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustStore=/var/lang/lib/security/cacerts "
8- # Set the JAVA_TOOL_OPTIONS environment variable for Java 17 and for ssl
9- ENV JAVA_TOOL_OPTIONS=${JAVA_TOOL_OPTIONS}
6+ # Argument for Java tool options
7+ ARG JAVA_TOOL_OPTIONS=""
8+ # Set the JAVA_TOOL_OPTIONS environment variable for Java 17 and always include default truststore to avoid SSL handshake issues
9+ ENV JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustStore=/var/lang/lib/security/cacerts ${JAVA_TOOL_OPTIONS}"
1010
1111# Install necessary tools
1212RUN yum update -y
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ ARG JAVA_VERSION=11
33# Use the specified version of Java
44FROM public.ecr.aws/lambda/java:${JAVA_VERSION}
55
6- # Argument for Java tool options for ssl
7- ARG JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustStore=/var/lang/lib/security/cacerts "
8- # Set the JAVA_TOOL_OPTIONS environment variable for Java 17 and for ssl
9- ENV JAVA_TOOL_OPTIONS=${JAVA_TOOL_OPTIONS}
6+ # Argument for Java tool options
7+ ARG JAVA_TOOL_OPTIONS=""
8+ # Set the JAVA_TOOL_OPTIONS environment variable for Java 17 and always include default truststore to avoid SSL handshake issues
9+ ENV JAVA_TOOL_OPTIONS="-Djavax.net.ssl.trustStore=/var/lang/lib/security/cacerts ${JAVA_TOOL_OPTIONS}"
1010
1111# Install necessary tools
1212RUN yum update -y
You can’t perform that action at this time.
0 commit comments