mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
updating dockerfile to install fastapi dependencies + engine for the engine lambda
This commit is contained in:
parent
a2caebce47
commit
3c2eab8a43
2 changed files with 9 additions and 9 deletions
|
|
@ -8,11 +8,15 @@ ENV PYTHONUNBUFFERED 1
|
||||||
# Set work directory to the root of your project
|
# Set work directory to the root of your project
|
||||||
WORKDIR var/task/Model
|
WORKDIR var/task/Model
|
||||||
|
|
||||||
# Install python dependencies
|
# Install python dependencies - we also install the fastapi dependencies here, since we use similar
|
||||||
COPY ./backend/engine/requirements.txt ./requirements.txt
|
# functionality (though the api isn't served via fastapi). We will probably simplify this in the future
|
||||||
# Install and clean up temp caches
|
COPY ./backend/engine/requirements.txt ./requirements1.txt
|
||||||
RUN pip install --upgrade pip \
|
COPY ./backend/app/requirements/requirements.txt ./requirements2.txt
|
||||||
&& pip install -r requirements.txt && rm -rf /root/.cache
|
|
||||||
|
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
|
# Since we are not using a base AWS image, there is some additional setup required. We need to set up the runtime
|
||||||
# interface client
|
# interface client
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,3 @@ fastparquet==2024.5.0
|
||||||
aiohttp==3.10.10
|
aiohttp==3.10.10
|
||||||
# find my epc
|
# find my epc
|
||||||
beautifulsoup4
|
beautifulsoup4
|
||||||
# Sqlalchemy
|
|
||||||
sqlalchemy==2.0.36
|
|
||||||
pydantic-settings==2.6.0
|
|
||||||
psycopg2-binary==2.9.10
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue