Merge pull request #411 from Hestia-Homes/remote-assessment-api

updating dockerfile to install fastapi dependencies + engine for the engine lambda
This commit is contained in:
KhalimCK 2025-04-17 15:10:16 +01:00 committed by GitHub
commit 87717c16dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 9 deletions

View file

@ -8,11 +8,15 @@ ENV PYTHONUNBUFFERED 1
# Set work directory to the root of your project
WORKDIR var/task/Model
# Install python dependencies
COPY ./backend/engine/requirements.txt ./requirements.txt
# Install and clean up temp caches
RUN pip install --upgrade pip \
&& pip install -r requirements.txt && rm -rf /root/.cache
# Install python dependencies - we also install the fastapi dependencies here, since we use similar
# functionality (though the api isn't served via fastapi). We will probably simplify this in the future
COPY ./backend/engine/requirements.txt ./requirements1.txt
COPY ./backend/app/requirements/requirements.txt ./requirements2.txt
RUN cat requirements1.txt requirements2.txt > requirements.txt \
&& pip install --upgrade pip \
&& pip install -r requirements.txt \
&& rm -rf /root/.cache
# Since we are not using a base AWS image, there is some additional setup required. We need to set up the runtime
# interface client

View file

@ -23,7 +23,3 @@ fastparquet==2024.5.0
aiohttp==3.10.10
# find my epc
beautifulsoup4
# Sqlalchemy
sqlalchemy==2.0.36
pydantic-settings==2.6.0
psycopg2-binary==2.9.10