diff --git a/gitea-mcp.Dockerfile b/gitea-mcp.Dockerfile index adb7226..86f3b89 100644 --- a/gitea-mcp.Dockerfile +++ b/gitea-mcp.Dockerfile @@ -33,5 +33,11 @@ RUN chmod +x /usr/local/bin/gitea-mcp # Cấu hình thư mục log ENV HOME=/app +# Cổng HTTP mặc định (đổi qua flag -p khi chạy nếu cần) +EXPOSE 8080 + +HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ + CMD curl -s -o /dev/null http://localhost:8080/ || exit 1 + # Chạy binary ENTRYPOINT ["gitea-mcp"] \ No newline at end of file