diff --git a/infrastructure/aws/lambda/Dockerfile b/infrastructure/aws/lambda/Dockerfile index a3723e4..1506519 100644 --- a/infrastructure/aws/lambda/Dockerfile +++ b/infrastructure/aws/lambda/Dockerfile @@ -26,6 +26,11 @@ RUN find /asset -type d -a -name 'tests' -print0 | xargs -0 rm -rf RUN rm -rdf /asset/numpy/doc/ /asset/bin /asset/geos_license /asset/Misc RUN rm -rdf /asset/boto3* RUN rm -rdf /asset/botocore* +RUN find /asset -type f -path '*LICENSE*' -delete +RUN find /asset -type f -path '*README*' -delete +RUN find /asset -type f -path '*AUTHORS*' -delete +RUN find /asset -type f -path '*pyproject*' -delete +RUN find /asset -type f -path '*setupcf*' -delete COPY infrastructure/aws/lambda/handler.py /asset/handler.py diff --git a/infrastructure/aws/lambda/Dockerfile.redis b/infrastructure/aws/lambda/Dockerfile.redis index 41d1635..93f104f 100644 --- a/infrastructure/aws/lambda/Dockerfile.redis +++ b/infrastructure/aws/lambda/Dockerfile.redis @@ -27,6 +27,11 @@ RUN find /asset -type d -a -name 'tests' -print0 | xargs -0 rm -rf RUN rm -rdf /asset/numpy/doc/ /asset/bin /asset/geos_license /asset/Misc RUN rm -rdf /asset/boto3* RUN rm -rdf /asset/botocore* +RUN find /asset -type f -path '*LICENSE*' -delete +RUN find /asset -type f -path '*README*' -delete +RUN find /asset -type f -path '*AUTHORS*' -delete +RUN find /asset -type f -path '*pyproject*' -delete +RUN find /asset -type f -path '*setupcf*' -delete COPY infrastructure/aws/lambda/handler.py /asset/handler.py diff --git a/pyproject.toml b/pyproject.toml index 06818f2..3fe1c84 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -30,6 +30,8 @@ dependencies = [ "xarray==2024.3.0", "rioxarray==0.15.0", "zarr==2.17.2", + "h5py==3.10.0", + "rasterio==1.3.9", "fsspec", "s3fs", "aiohttp",