This commit is contained in:
Jun-te Kim 2026-02-09 21:32:26 +00:00
parent 53ec9c261c
commit e5cf3a426e
2 changed files with 16 additions and 8 deletions

View file

@ -7,16 +7,20 @@ COPY backend/postcode_splitter/handler/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY utils/ utils/
COPY backend/postcode_splitter/main.py .
# Copy necessary files for database and utility imports
COPY utils/ utils/
COPY backend/ backend/
COPY backend/__init__.py backend/__init__.py
# Copy the handler
COPY backend/postcode_splitter/main.py .
# # -----------------------------
# # Lambda handler
# # -----------------------------
# Ensure __init__.py files exist for proper module importing
RUN touch backend/__init__.py
RUN touch backend/app/__init__.py
RUN touch backend/db/__init__.py
RUN touch backend/postcode_splitter/__init__.py
RUN touch utils/__init__.py
# Lambda handler
CMD ["main.handler"]

View file

@ -3,4 +3,8 @@ numpy<2.0
requests
tqdm
openpyxl
epc-api-python==1.0.2
epc-api-python==1.0.2
boto3==1.35.44
sqlmodel
sqlalchemy==2.0.36
psycopg2-binary==2.9.10