Update Dockerfile1
Browse files- Dockerfile1 +2 -2
Dockerfile1
CHANGED
|
@@ -22,7 +22,7 @@ RUN apt-get update \
|
|
| 22 |
|
| 23 |
# Install Python dependencies
|
| 24 |
# If your pipeline requires google-genai, include it; otherwise adjust as needed.
|
| 25 |
-
RUN pip install --no-cache-dir
|
| 26 |
|
| 27 |
# Create a non-root user (optional but recommended)
|
| 28 |
RUN useradd -m appuser || true
|
|
@@ -32,4 +32,4 @@ USER appuser
|
|
| 32 |
EXPOSE 7860
|
| 33 |
|
| 34 |
# Command to run the app
|
| 35 |
-
CMD ["uvicorn", "
|
|
|
|
| 22 |
|
| 23 |
# Install Python dependencies
|
| 24 |
# If your pipeline requires google-genai, include it; otherwise adjust as needed.
|
| 25 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
| 27 |
# Create a non-root user (optional but recommended)
|
| 28 |
RUN useradd -m appuser || true
|
|
|
|
| 32 |
EXPOSE 7860
|
| 33 |
|
| 34 |
# Command to run the app
|
| 35 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]
|