Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +14 -1
Dockerfile
CHANGED
@@ -1 +1,14 @@
|
|
1 |
-
FROM ghcr.io/timigogo/cli2api:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM ghcr.io/timigogo/cli2api:latest
|
2 |
+
EXPOSE 8888 7860
|
3 |
+
|
4 |
+
# Set environment variables
|
5 |
+
ENV PYTHONPATH=/app
|
6 |
+
ENV HOST=0.0.0.0
|
7 |
+
ENV PORT=7860
|
8 |
+
|
9 |
+
# Health check (use PORT environment variable)
|
10 |
+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
|
11 |
+
CMD curl -f http://localhost:${PORT}/health || exit 1
|
12 |
+
|
13 |
+
# Run the application using app.py (Hugging Face compatible entry point)
|
14 |
+
CMD ["python", "app.py"]
|