mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
added req for handler
This commit is contained in:
parent
f3cd4ad590
commit
72846b8e7b
2 changed files with 31 additions and 0 deletions
28
backend/address2UPRN/handler/Dockerfile
Normal file
28
backend/address2UPRN/handler/Dockerfile
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
FROM public.ecr.aws/lambda/python:3.10
|
||||
|
||||
# Set working directory (Lambda task root)
|
||||
WORKDIR /var/task
|
||||
|
||||
# -----------------------------
|
||||
# Copy requirements FIRST (for Docker layer caching)
|
||||
# -----------------------------
|
||||
COPY backend/address2UPRN/handler/requirements.txt .
|
||||
|
||||
# Install dependencies into Lambda runtime
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# -----------------------------
|
||||
# Copy application code
|
||||
# -----------------------------
|
||||
COPY utils/ utils/
|
||||
COPY backend/address2UPRN/main.py .
|
||||
|
||||
# # -----------------------------
|
||||
# # Ensure Python can find utils/
|
||||
# # -----------------------------
|
||||
# ENV PYTHONPATH="/var/task"
|
||||
|
||||
# -----------------------------
|
||||
# Lambda handler
|
||||
# -----------------------------
|
||||
CMD ["main.handler"]
|
||||
3
backend/address2UPRN/handler/requirements.txt
Normal file
3
backend/address2UPRN/handler/requirements.txt
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
epc-api-python==1.0.2
|
||||
tqdm
|
||||
pandas
|
||||
Loading…
Add table
Reference in a new issue