Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +1 -5
Dockerfile
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
FROM python:3.
|
| 2 |
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
|
@@ -24,9 +24,5 @@ RUN mkdir -p data output logs
|
|
| 24 |
# Expose port (HF Spaces uses 7860)
|
| 25 |
EXPOSE 7860
|
| 26 |
|
| 27 |
-
# Health check
|
| 28 |
-
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
| 29 |
-
CMD curl -f http://localhost:7860/health || exit 1
|
| 30 |
-
|
| 31 |
# Run uvicorn directly
|
| 32 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "info"]
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
|
| 3 |
# Set working directory
|
| 4 |
WORKDIR /app
|
|
|
|
| 24 |
# Expose port (HF Spaces uses 7860)
|
| 25 |
EXPOSE 7860
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
# Run uvicorn directly
|
| 28 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--log-level", "info"]
|