File tree Expand file tree Collapse file tree
containerimageexample/python-arm64 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,10 +39,14 @@ WORKDIR ${FUNCTION_DIR}
3939COPY --from=build-image ${FUNCTION_DIR} ./
4040# (Optional) Add Lambda Runtime Interface Emulator and use a script in the ENTRYPOINT for simpler local runs
4141ADD https://github.com/aws/aws-lambda-runtime-interface-emulator/releases/latest/download/aws-lambda-rie /usr/bin/aws-lambda-rie
42- # Create the directory explicitly
42+ # Create the target directory for extensions
4343RUN mkdir -p /opt/extensions
44- # SumoLogic Lambda extension
45- COPY extensions/sumologic-extension /opt/extensions/
44+
45+ # Extract the Sumo Logic Lambda extension package
46+ ADD sumologic-extension-arm64.tar.gz /opt/extensions/
47+
48+ # Clean up any hidden files from the extracted content
49+ RUN find /opt/extensions -type f -name ".*" -delete
4650COPY entry.sh /
4751RUN chmod 755 /usr/bin/aws-lambda-rie /entry.sh
4852ENTRYPOINT [ "/entry.sh" ]
You can’t perform that action at this time.
0 commit comments