Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -23,8 +23,8 @@ ENV PATH="/app/.venv/bin:$PATH"
|
|
| 23 |
# Copy the FastAPI app and model
|
| 24 |
COPY predict.py model.bin ./
|
| 25 |
|
| 26 |
-
# Expose port (optional but good practice)
|
| 27 |
-
EXPOSE
|
| 28 |
|
| 29 |
# Start the FastAPI app with uvicorn
|
| 30 |
-
ENTRYPOINT ["uvicorn", "predict:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 23 |
# Copy the FastAPI app and model
|
| 24 |
COPY predict.py model.bin ./
|
| 25 |
|
| 26 |
+
# Expose port (optional but good practice, 7860 for HF Spaces)
|
| 27 |
+
EXPOSE 7860
|
| 28 |
|
| 29 |
# Start the FastAPI app with uvicorn
|
| 30 |
+
ENTRYPOINT ["uvicorn", "predict:app", "--host", "0.0.0.0", "--port", "7860"]
|