mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
postcode spliter
This commit is contained in:
parent
555544fc2d
commit
14dbc802c2
4 changed files with 18 additions and 12 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,6 @@
|
|||
epc-api-python==1.0.2
|
||||
pandas==2.2.2
|
||||
numpy<2.0
|
||||
requests
|
||||
tqdm
|
||||
pandas
|
||||
openpyxl
|
||||
epc-api-python==1.0.2
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue