wwforonce commited on
Commit
37085aa
·
1 Parent(s): ab3f41a

fix Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,6 +1,9 @@
1
  FROM ghcr.io/dbccccccc/ttsfm:latest
2
- # Expose port
3
- EXPOSE 8000
4
 
5
  WORKDIR /app/ttsfm-web
6
- CMD ["python", "-m", "waitress", "--host=0.0.0.0", "--port=8000", "app:app"]
 
 
 
 
 
 
1
  FROM ghcr.io/dbccccccc/ttsfm:latest
 
 
2
 
3
  WORKDIR /app/ttsfm-web
4
+
5
+ # Add health check
6
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
7
+ CMD curl -f http://localhost:7860/ || exit 1
8
+
9
+ CMD ["python", "-m", "waitress", "--host=0.0.0.0", "--port=7860", "app:app"]