Update Dockerfile
Browse files- Dockerfile +2 -9
Dockerfile
CHANGED
|
@@ -1,14 +1,7 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
-
|
| 3 |
-
# Install git to allow pip to clone from GitHub
|
| 4 |
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
| 5 |
-
|
| 6 |
WORKDIR /app
|
| 7 |
-
|
| 8 |
COPY requirements.txt .
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
-
|
| 11 |
COPY . .
|
| 12 |
-
|
| 13 |
-
# The final ASGI app is named 'app' in app.py (the result of gr.mount_gradio_app)
|
| 14 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
|
|
|
|
|
|
| 2 |
RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
|
|
|
|
| 3 |
WORKDIR /app
|
|
|
|
| 4 |
COPY requirements.txt .
|
| 5 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 6 |
COPY . .
|
| 7 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|