postcode spliter

This commit is contained in:
Jun-te Kim 2026-02-09 13:58:45 +00:00
parent 555544fc2d
commit 14dbc802c2
4 changed files with 18 additions and 12 deletions

View file

@ -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 # This is not going to be permenant - but until we solve for env variables in live prod
ENV EPC_AUTH_TOKEN=a2Nvbm5rb3dsZXNzYXJAZ21haWwuY29tOjY5MGJiMWM0NmIyOGI5ZDUxYzAxMzQzYzNiZGNlZGJjZDNmODQwMzAg ENV EPC_AUTH_TOKEN=a2Nvbm5rb3dsZXNzYXJAZ21haWwuY29tOjY5MGJiMWM0NmIyOGI5ZDUxYzAxMzQzYzNiZGNlZGJjZDNmODQwMzAg
@ -11,6 +12,7 @@ WORKDIR /var/task
# ----------------------------- # -----------------------------
COPY backend/address2UPRN/handler/requirements.txt . COPY backend/address2UPRN/handler/requirements.txt .
# Install dependencies into Lambda runtime # Install dependencies into Lambda runtime
RUN pip install --no-cache-dir -r requirements.txt RUN pip install --no-cache-dir -r requirements.txt

View file

@ -1,3 +1,6 @@
epc-api-python==1.0.2 pandas==2.2.2
numpy<2.0
requests
tqdm tqdm
pandas openpyxl
epc-api-python==1.0.2

View file

@ -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) # Set working directory (Lambda task root)
WORKDIR /var/task WORKDIR /var/task
@ -9,7 +9,7 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY utils/ utils/ COPY utils/ utils/
COPY backend/postcode_splitter/main.py . COPY backend/postcode_splitter/main.py .
# ----------------------------- # # -----------------------------
# Lambda handler # # Lambda handler
# ----------------------------- # # -----------------------------
CMD ["main.handler"] CMD ["main.handler"]

View file

@ -1,5 +1,6 @@
pandas>=1.3.0 pandas==2.2.2
requests>=2.28.0 numpy<2.0
tqdm>=4.64.0 requests
epc-api>=0.1.0 tqdm
openpyxl>=3.8.0 openpyxl
epc-api-python==1.0.2