From 1e48f035d1affc71bade3689a0add9c96f69904d Mon Sep 17 00:00:00 2001 From: Aimee Barciauskas Date: Mon, 6 Nov 2023 16:13:39 -0800 Subject: [PATCH] Install some packages with no binary --- infrastructure/aws/lambda/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infrastructure/aws/lambda/Dockerfile b/infrastructure/aws/lambda/Dockerfile index a3723e4..b93edb7 100644 --- a/infrastructure/aws/lambda/Dockerfile +++ b/infrastructure/aws/lambda/Dockerfile @@ -16,7 +16,7 @@ COPY titiler/ titiler/ # we have to force using old package version that seems `almost` compatible with Lambda env botocore # https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html RUN pip install --upgrade pip -RUN pip install . "mangum>=0.10.0" "botocore==1.29.76" "aiobotocore==2.5.0" -t /asset --no-binary pydantic +RUN pip install . "mangum>=0.10.0" "botocore==1.29.76" "aiobotocore==2.5.0" "numpy==1.26.1" "rasterio==1.3.9" -t /asset --no-binary pydantic # Reduce package size and remove useless files RUN cd /asset && find . -type f -name '*.pyc' | while read f; do n=$(echo $f | sed 's/__pycache__\///' | sed 's/.cpython-[0-9]*//'); cp $f $n; done;