mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
switch back to copying across specific files
This commit is contained in:
parent
527ccab9fa
commit
1bfa7be8db
2 changed files with 13 additions and 3 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
FROM public.ecr.aws/lambda/python:3.11
|
FROM public.ecr.aws/lambda/python:3.11
|
||||||
# FROM python:3.11.10-bullseye
|
# FROM python:3.11.10-bullseye # For local running
|
||||||
|
|
||||||
# Set working directory (Lambda task root)
|
# Set working directory (Lambda task root)
|
||||||
WORKDIR /var/task
|
WORKDIR /var/task
|
||||||
|
|
@ -16,9 +16,17 @@ RUN pip install --no-cache-dir -r requirements.txt
|
||||||
# Copy application code
|
# Copy application code
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
COPY utils/ utils/
|
COPY utils/ utils/
|
||||||
COPY backend/ backend/
|
COPY backend/condition/ backend/condition/
|
||||||
|
|
||||||
|
COPY backend/app/db/models/condition.py backend/app/db/models/condition.py
|
||||||
|
COPY backend/app/db/connection.py backend/app/db/connection.py
|
||||||
|
|
||||||
|
COPY backend/__init__.py backend/__init__.py
|
||||||
|
COPY backend/app/__init__.py backend/app/__init__.py
|
||||||
|
COPY backend/app/db/__init__.py backend/app/db/__init__.py
|
||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
# Lambda handler
|
# Lambda handler
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
CMD ["backend/condition/handler/handler.handler"]
|
CMD ["backend/condition/handler/handler.handler"]
|
||||||
|
# CMD ["python", "-m", "backend.condition.handler.handler"] # For local running
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
openpyxl
|
openpyxl
|
||||||
sqlmodel
|
sqlmodel
|
||||||
|
pydantic-settings
|
||||||
|
|
||||||
# pandas isn't used, but needed for importing from utils.s3
|
# pandas isn't used, but needed for importing from utils.s3
|
||||||
pandas==2.2.2
|
pandas==2.2.2
|
||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
|
openpyxl
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue