fix Dockerfile
Browse files- 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|