From 80ca83261d1abbd6e389695d2b09971a661476bb Mon Sep 17 00:00:00 2001 From: Alexander Melnyk Date: Wed, 2 Mar 2022 18:30:24 +0100 Subject: [PATCH 1/2] fix zip structure for layer --- layer/Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/layer/Dockerfile b/layer/Dockerfile index eafc22d..e1dd10c 100644 --- a/layer/Dockerfile +++ b/layer/Dockerfile @@ -16,8 +16,4 @@ WORKDIR /tmp RUN yum update -y && yum install -y zip unzip wget tar gzip -RUN pip install -t /python aws-lambda-powertools$PACKAGE_SUFFIX - - -RUN mkdir -p /asset -RUN zip -qr /asset/layer.zip /python --exclude \*/tests/\* \*/doc/\* \*/__pycache__/\* \*.pyc +RUN pip install -t /assets/python aws-lambda-powertools$PACKAGE_SUFFIX \ No newline at end of file From eca4c0e91e030100d29a4b9f77622b1a08e9ed43 Mon Sep 17 00:00:00 2001 From: Alexander Melnyk Date: Wed, 2 Mar 2022 18:40:04 +0100 Subject: [PATCH 2/2] fix asset path --- layer/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layer/Dockerfile b/layer/Dockerfile index e1dd10c..f488f00 100644 --- a/layer/Dockerfile +++ b/layer/Dockerfile @@ -16,4 +16,4 @@ WORKDIR /tmp RUN yum update -y && yum install -y zip unzip wget tar gzip -RUN pip install -t /assets/python aws-lambda-powertools$PACKAGE_SUFFIX \ No newline at end of file +RUN pip install -t /asset/python aws-lambda-powertools$PACKAGE_SUFFIX \ No newline at end of file