Skip to content

Commit 3dc8767

Browse files
Improve cold starts on AL2023 (#945)
Improve cold start performance for .NET 8 when HTTP requests are made on Amazon Linux 2023. See aws/aws-lambda-dotnet#1661.
1 parent 954d525 commit 3dc8767

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ container-uploader/*.zip
77
s3-uploader/node_modules
88
s3-uploader/runtimes/rust_on_provided_al2/target
99
s3-uploader/runtimes/rust_on_provided_al2023/target
10-
s3-uploader/runtimes/dotnetcore31/src/obj
11-
s3-uploader/runtimes/dotnet6/src/obj
10+
s3-uploader/runtimes/dotnet*/src/obj
1211
s3-uploader/runtimes/java21/.gradle
1312
s3-uploader/runtimes/java21/build
1413
s3-uploader/runtimes/java21/bin

s3-uploader/runtimes/dotnet8_aot_on_provided_al2023/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ COPY src .
66
RUN yum update -y && yum install -y clang zlib-devel krb5-devel openssl-devel zip gzip tar wget
77
RUN wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh && chmod +x ./dotnet-install.sh && ./dotnet-install.sh --version latest
88
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1
9+
ENV SSL_CERT_FILE=/tmp/noop
910
RUN /root/.dotnet/dotnet publish --configuration Release --arch $ARCH --output /tmp/publish
1011
RUN zip -j /tmp/code.zip /tmp/publish/bootstrap
1112

s3-uploader/runtimes/dotnet8_aot_on_provided_al2023/src/aws-lambda-tools-defaults.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"configuration": "Release",
3+
"environment-variables" : "SSL_CERT_FILE=/tmp/noop",
34
"framework": "net8.0",
45
"function-runtime": "provided.al2023",
56
"function-memory-size": 256,

0 commit comments

Comments
 (0)