diff --git a/stac_api/runtime/Dockerfile b/stac_api/runtime/Dockerfile index f10b961d..c8a8c852 100644 --- a/stac_api/runtime/Dockerfile +++ b/stac_api/runtime/Dockerfile @@ -3,10 +3,10 @@ FROM --platform=linux/amd64 public.ecr.aws/sam/build-python3.9:latest WORKDIR /tmp COPY stac_api/runtime /tmp/stac -COPY common/auth /tmp/stac/common/auth -RUN pip install /tmp/stac/common/auth -t /asset RUN pip install "mangum>=0.14,<0.15" "plpygis>=0.2.1" /tmp/stac -t /asset --no-binary pydantic +COPY common/auth /tmp/stac/common/auth +RUN pip install /tmp/stac/common/auth -t /asset RUN rm -rf /tmp/stac # Reduce package size and remove useless files diff --git a/stac_api/runtime/setup.py b/stac_api/runtime/setup.py index 31970c8b..2cdf855d 100644 --- a/stac_api/runtime/setup.py +++ b/stac_api/runtime/setup.py @@ -18,8 +18,7 @@ "pygeoif<=0.8", # newest release (1.0+ / 09-22-2022) breaks a number of other geo libs "aws-lambda-powertools>=1.18.0", "aws_xray_sdk>=2.6.0,<3", - "pystac[validation]==1.10.1", - "brotli==1.1.0", + "pystac[validation]==1.10.1" ] extra_reqs = { diff --git a/stac_api/runtime/src/app.py b/stac_api/runtime/src/app.py index a48d4c45..e30bfbe2 100644 --- a/stac_api/runtime/src/app.py +++ b/stac_api/runtime/src/app.py @@ -8,7 +8,6 @@ from src.config import get_request_model as GETModel from src.config import post_request_model as POSTModel from src.extension import TiTilerExtension -from veda_auth import VedaAuth from fastapi import APIRouter, FastAPI from fastapi.params import Depends @@ -80,6 +79,7 @@ ) if api_settings.enable_transactions: + from veda_auth import VedaAuth auth = VedaAuth(api_settings) # Require auth for all endpoints that create, modify or delete data. add_route_dependencies(