diff --git a/backend/address2UPRN/handler/Dockerfile b/backend/address2UPRN/handler/Dockerfile index 3f7567d3..5ccb5590 100644 --- a/backend/address2UPRN/handler/Dockerfile +++ b/backend/address2UPRN/handler/Dockerfile @@ -1,4 +1,5 @@ -FROM public.ecr.aws/lambda/python:3.10 +# FROM public.ecr.aws/lambda/python:3.10 +# FROM python:3.11.10-bullseye # This is not going to be permenant - but until we solve for env variables in live prod ENV EPC_AUTH_TOKEN=a2Nvbm5rb3dsZXNzYXJAZ21haWwuY29tOjY5MGJiMWM0NmIyOGI5ZDUxYzAxMzQzYzNiZGNlZGJjZDNmODQwMzAg @@ -11,6 +12,7 @@ WORKDIR /var/task # ----------------------------- COPY backend/address2UPRN/handler/requirements.txt . + # Install dependencies into Lambda runtime RUN pip install --no-cache-dir -r requirements.txt diff --git a/backend/address2UPRN/handler/requirements.txt b/backend/address2UPRN/handler/requirements.txt index bc753841..eba2c846 100644 --- a/backend/address2UPRN/handler/requirements.txt +++ b/backend/address2UPRN/handler/requirements.txt @@ -1,3 +1,6 @@ -epc-api-python==1.0.2 +pandas==2.2.2 +numpy<2.0 +requests tqdm -pandas \ No newline at end of file +openpyxl +epc-api-python==1.0.2 diff --git a/backend/postcode_splitter/handler/Dockerfile b/backend/postcode_splitter/handler/Dockerfile index 3f77f38f..f8196297 100644 --- a/backend/postcode_splitter/handler/Dockerfile +++ b/backend/postcode_splitter/handler/Dockerfile @@ -1,4 +1,4 @@ -FROM public.ecr.aws/lambda/python:3.10 +FROM public.ecr.aws/lambda/python:3.11 # Set working directory (Lambda task root) WORKDIR /var/task @@ -9,7 +9,7 @@ RUN pip install --no-cache-dir -r requirements.txt COPY utils/ utils/ COPY backend/postcode_splitter/main.py . -# ----------------------------- -# Lambda handler -# ----------------------------- +# # ----------------------------- +# # Lambda handler +# # ----------------------------- CMD ["main.handler"] diff --git a/backend/postcode_splitter/handler/requirements.txt b/backend/postcode_splitter/handler/requirements.txt index f6618d2b..8adea4e7 100644 --- a/backend/postcode_splitter/handler/requirements.txt +++ b/backend/postcode_splitter/handler/requirements.txt @@ -1,5 +1,6 @@ -pandas>=1.3.0 -requests>=2.28.0 -tqdm>=4.64.0 -epc-api>=0.1.0 -openpyxl>=3.8.0 +pandas==2.2.2 +numpy<2.0 +requests +tqdm +openpyxl +epc-api-python==1.0.2 \ No newline at end of file