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
5
5
RUN python -m pip install pip -U
6
6
7
7
COPY 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
9
9
10
10
RUN mkdir -p /asset/src
11
11
COPY 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
2
2
starlette-cramjam >= 0.4 ,< 0.5
Original file line number Diff line number Diff line change @@ -38,7 +38,15 @@ async def shutdown_event():
38
38
print ("DB connection closed." )
39
39
40
40
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
+ )
42
50
43
51
44
52
if "AWS_EXECUTION_ENV" in os .environ :
You can’t perform that action at this time.
0 commit comments