Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -13
Dockerfile
CHANGED
|
@@ -1,16 +1,8 @@
|
|
| 1 |
-
FROM python:3.10
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
# Install dependencies
|
| 6 |
COPY requirements.txt .
|
| 7 |
-
RUN pip install
|
| 8 |
-
|
| 9 |
-
# Copy FastAPI app
|
| 10 |
-
COPY app.py .
|
| 11 |
-
|
| 12 |
-
# Expose the port Hugging Face Spaces expects
|
| 13 |
-
EXPOSE 7860
|
| 14 |
|
| 15 |
-
|
| 16 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
|
| 3 |
+
RUN apt update && apt install -y git
|
|
|
|
|
|
|
| 4 |
COPY requirements.txt .
|
| 5 |
+
RUN pip install -r requirements.txt
|
| 6 |
+
COPY . .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|