garvitcpp commited on
Commit
318dbe8
·
verified ·
1 Parent(s): 09410eb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -15
Dockerfile CHANGED
@@ -1,16 +1,18 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /code
4
-
5
- # Copy requirements first to leverage Docker cache
6
- COPY requirements.txt .
7
-
8
- # Install dependencies
9
- RUN pip install --no-cache-dir -r requirements.txt && \
10
- pip install --no-cache-dir google-generativeai
11
-
12
- # Copy the rest of the application
13
- COPY . .
14
-
15
- # Command to run the application
 
 
16
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /code
4
+
5
+ # Copy requirements first to leverage Docker cache
6
+ COPY requirements.txt .
7
+
8
+ # Install dependencies
9
+ RUN pip install --no-cache-dir -r requirements.txt && \
10
+ pip install --no-cache-dir google-generativeai && \
11
+ pip install --no-cache-dir python-dotenv
12
+
13
+
14
+ # Copy the rest of the application
15
+ COPY . .
16
+
17
+ # Command to run the application
18
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]