mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
26 lines
811 B
Docker
26 lines
811 B
Docker
FROM public.ecr.aws/lambda/python:3.10
|
|
|
|
# This is not going to be permenant - but until we solve for env variables in live prod
|
|
ENV EPC_AUTH_TOKEN=a2Nvbm5rb3dsZXNzYXJAZ21haWwuY29tOjY5MGJiMWM0NmIyOGI5ZDUxYzAxMzQzYzNiZGNlZGJjZDNmODQwMzAg
|
|
|
|
# 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 .
|
|
|
|
# -----------------------------
|
|
# Lambda handler
|
|
# -----------------------------
|
|
CMD ["main.handler"]
|