From f9e761161eebe860bdb67a10ede8cbc4efb55ef8 Mon Sep 17 00:00:00 2001
From: Dev-iL <Gid.CTO+github@gmail.com>
Date: Mon, 11 Nov 2024 13:24:10 +0200
Subject: [PATCH] Exclude __pycache__ and pip folders from the layer contents

This decreases the package size by x10 and aligns with the AWS docs.
---
 sample-apps/layer-python/layer/2-package.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sample-apps/layer-python/layer/2-package.sh b/sample-apps/layer-python/layer/2-package.sh
index b720b012..4c829763 100755
--- a/sample-apps/layer-python/layer/2-package.sh
+++ b/sample-apps/layer-python/layer/2-package.sh
@@ -1,3 +1,3 @@
 mkdir python
 cp -r create_layer/lib python/
-zip -r layer_content.zip python
+zip -r layer_content.zip python -x "*/__pycache__/*" -x "*/pip*/*"