banao-tech commited on
Commit
ac190ec
·
verified ·
1 Parent(s): 43bbc25

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -2
Dockerfile CHANGED
@@ -11,8 +11,11 @@ RUN chmod 1777 /tmp \
11
  && dpkg -i /tmp/cuda-keyring.deb && apt update -q \
12
  && apt install -y --no-install-recommends libcudnn8 libcublas-12-2
13
 
14
- # Install Python dependencies
15
- RUN pip install fastapi[all] uvicorn Pillow
 
 
 
16
 
17
  # Copy the application code
18
  COPY main.py main.py
 
11
  && dpkg -i /tmp/cuda-keyring.deb && apt update -q \
12
  && apt install -y --no-install-recommends libcudnn8 libcublas-12-2
13
 
14
+ # Copy the requirements.txt file into the container
15
+ COPY requirements.txt /app/requirements.txt
16
+
17
+ # Install Python dependencies from requirements.txt
18
+ RUN pip install --no-cache-dir -r /app/requirements.txt
19
 
20
  # Copy the application code
21
  COPY main.py main.py