File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ WORKDIR /tmp
55RUN python -m pip install pip -U
66
77COPY stac-api/runtime/requirements.txt requirements.txt
8- RUN python -m pip install -r requirements.txt "mangum>=0.14,<0.15" -t /asset --no-binary pydantic
8+ RUN python -m pip install -r requirements.txt -t /asset --no-binary pydantic
99
1010RUN mkdir -p /asset/src
1111COPY stac-api/runtime/src/*.py /asset/
Original file line number Diff line number Diff line change 1- stac-fastapi-pgstac >= 5.0 ,< 5.1
1+ stac-fastapi-pgstac [ awslambda ] >= 5.0 ,< 5.1
22starlette-cramjam >= 0.4 ,< 0.5
Original file line number Diff line number Diff line change @@ -38,7 +38,15 @@ async def shutdown_event():
3838 print ("DB connection closed." )
3939
4040
41- handler = Mangum (app , lifespan = "off" )
41+ handler = Mangum (
42+ app ,
43+ lifespan = "off" ,
44+ text_mime_types = [
45+ # Avoid base64 encoding any text/* or application/* mime-types
46+ "text/" ,
47+ "application/" ,
48+ ],
49+ )
4250
4351
4452if "AWS_EXECUTION_ENV" in os .environ :
You can’t perform that action at this time.
0 commit comments