mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
28 lines
722 B
Docker
28 lines
722 B
Docker
FROM public.ecr.aws/lambda/python:3.11
|
|
|
|
ARG DEV_DB_HOST
|
|
ARG DEV_DB_PORT
|
|
ARG DEV_DB_NAME
|
|
|
|
ENV DB_HOST=${DEV_DB_HOST}
|
|
ENV DB_PORT=${DEV_DB_PORT}
|
|
ENV DB_NAME=${DEV_DB_NAME}
|
|
|
|
WORKDIR /var/task
|
|
|
|
COPY backend/bulk_address2uprn_combiner/handler/requirements.txt .
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY utils/ utils/
|
|
COPY backend/ backend/
|
|
COPY datatypes/ datatypes/
|
|
# backend.app.db.models.recommendations imports infrastructure.postgres.modelling,
|
|
# which imports domain.modelling; without these the lambda fails at init with
|
|
# "No module named 'infrastructure'" / "'domain'".
|
|
COPY infrastructure/ infrastructure/
|
|
COPY domain/ domain/
|
|
|
|
COPY backend/bulk_address2uprn_combiner/main.py .
|
|
|
|
CMD ["main.handler"]
|