File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:${PYTHON_VERSION}
44
55WORKDIR /tmp
66
7- RUN pip install pip -U
8- RUN pip install "titiler.application==0.18.6" "mangum>=0.10.0" -t /asset --no-binary pydantic
7+ # Install system dependencies to compile (numexpr)
8+ RUN yum install -y gcc-c++
9+
10+ RUN python -m pip install pip -U
11+ RUN python -m pip install "titiler.application==0.18.6" "mangum>=0.10.0" -t /asset --no-binary pydantic
912
1013# Reduce package size and remove useless files
1114RUN 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;
@@ -14,6 +17,9 @@ RUN cd /asset && find . -type f -a -name '*.py' -print0 | xargs -0 rm -f
1417RUN find /asset -type d -a -name 'tests' -print0 | xargs -0 rm -rf
1518RUN rm -rdf /asset/numpy/doc/ /asset/boto3* /asset/botocore* /asset/bin /asset/geos_license /asset/Misc
1619
20+ # Remove system dependencies
21+ RUN yum remove -y gcc-c++
22+
1723COPY lambda/handler.py /asset/handler.py
1824
1925CMD ["echo" , "hello world" ]
You can’t perform that action at this time.
0 commit comments