File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
LambdaRuntimeDockerfiles/Images/net8
Libraries/src/Amazon.Lambda.RuntimeSupport Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ RUN apt-get update && apt-get install -y dos2unix
43
43
RUN dos2unix /app/publish/bootstrap-al2023.sh && \
44
44
mv /app/publish/bootstrap-al2023.sh /app/publish/bootstrap && \
45
45
chmod +x /app/publish/bootstrap
46
+ RUN touch /app/publish/empty-certificates.crt
46
47
47
48
48
49
FROM base
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ RUN apt-get update && apt-get install -y dos2unix
43
43
RUN dos2unix /app/publish/bootstrap-al2023.sh && \
44
44
mv /app/publish/bootstrap-al2023.sh /app/publish/bootstrap && \
45
45
chmod +x /app/publish/bootstrap
46
+ RUN touch /app/publish/empty-certificates.crt
46
47
47
48
48
49
FROM base
Original file line number Diff line number Diff line change 5
5
# certs in the default cert directory which can be overriden by the SSL_CERT_DIR env var. On AL2023
6
6
# The default cert bundle file, via symbolic links, resolves to being in a file under the default cert directory.
7
7
# This means the default cert bundle file is double loaded causing a cold start performance hit. This logic
8
- # sets the SSL_CERT_FILE to a noop file if SSL_CERT_FILE hasn't been explicitly
8
+ # sets the SSL_CERT_FILE to an empty file if SSL_CERT_FILE hasn't been explicitly
9
9
# set. This avoid the double load of the default cert bundle file.
10
10
if [ -z " ${SSL_CERT_FILE} " ]; then
11
- export SSL_CERT_FILE=" /tmp/noop "
11
+ export SSL_CERT_FILE=" /var/runtime/empty-certificates.crt "
12
12
fi
13
13
14
14
# This script is used to locate 2 files in the /var/task folder, where the end-user assembly is located
You can’t perform that action at this time.
0 commit comments