clash-linux commited on
Commit
45ea3ee
·
verified ·
1 Parent(s): 28c0a74

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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"]