Skip to content

Commit

Permalink
pin numpexr in lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentsarago committed Jul 4, 2024
1 parent 7189c6d commit a03de92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deployment/aws/lambda/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FROM --platform=linux/amd64 public.ecr.aws/lambda/python:${PYTHON_VERSION}

WORKDIR /tmp

RUN pip install pip -U
RUN pip install "titiler.application==0.18.5" "mangum>=0.10.0" -t /asset --no-binary pydantic
RUN python -m pip install pip -U
RUN python -m pip install "titiler.application==0.18.5" "mangum>=0.10.0" "numexpr==2.10.0" -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;
Expand Down

0 comments on commit a03de92

Please sign in to comment.