added req for handler

This commit is contained in:
Jun-te Kim 2026-02-04 14:23:14 +00:00
parent f3cd4ad590
commit 72846b8e7b
2 changed files with 31 additions and 0 deletions

View 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"]

View file

@ -0,0 +1,3 @@
epc-api-python==1.0.2
tqdm
pandas