Update Dockerfile
Browse files- 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 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
| 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"]
|