Skip to content

Commit 0c1241c

Browse files
Updated Dockerfile
1 parent fe2f217 commit 0c1241c

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

containerimageexample/python-arm64/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ WORKDIR ${FUNCTION_DIR}
3939
COPY --from=build-image ${FUNCTION_DIR} ./
4040
# (Optional) Add Lambda Runtime Interface Emulator and use a script in the ENTRYPOINT for simpler local runs
4141
ADD 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
4343
RUN 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
4650
COPY entry.sh /
4751
RUN chmod 755 /usr/bin/aws-lambda-rie /entry.sh
4852
ENTRYPOINT [ "/entry.sh" ]
-13.5 MB
Binary file not shown.

0 commit comments

Comments
 (0)