Last active
September 19, 2023 10:04
-
-
Save Rud5G/b47cd7d3eaecb17181521331b29e958c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM scratch | |
ADD 26cb4352778d69ccfacbec9c093f43bb62fee5e385995da7e98dbadc18bf4bbc.tar.xz / | |
ADD 27e72e63101143b7556236b441759818e78135beac997cfb7abed0fe58bac5d6.tar.xz / | |
ADD 7cec14968c9186694c5f9573dea2caf9f518bb3fcf6047e9848e6e29c8175cac.tar.xz / | |
ADD a738322a4c0acd0630828ada97df94b1ed2e76f0d6e21faf68e4f9c039503f32.tar.xz / | |
ADD e9b8b071d9ac433b7e4955d2b29c3c8f8ae8e030638b9411fb35defe7fca8cb1.tar.xz / | |
ADD ec3491d15ae5bb145e8640631b026f314ed8182355dcb10978323d076b3121c5.tar.xz / | |
ENV LANG=en_US.UTF-8 | |
ENV TZ=:/etc/localtime | |
ENV PATH=/var/lang/bin:/usr/local/bin:/usr/bin/:/bin:/opt/bin | |
ENV LD_LIBRARY_PATH=/var/lang/lib:/lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib | |
ENV LAMBDA_TASK_ROOT=/var/task | |
ENV LAMBDA_RUNTIME_DIR=/var/runtime | |
WORKDIR /var/task | |
ENTRYPOINT ["/lambda-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
if [ $# -ne 1 ]; then | |
echo "entrypoint requires the handler name to be the first argument" 1>&2 | |
exit 142 | |
fi | |
export _HANDLER="$1" | |
RUNTIME_ENTRYPOINT=/var/runtime/bootstrap | |
if [ -z "${AWS_LAMBDA_RUNTIME_API}" ]; then | |
exec /usr/local/bin/aws-lambda-rie $RUNTIME_ENTRYPOINT | |
else | |
exec $RUNTIME_ENTRYPOINT | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment