diff --git a/services/router/Dockerfile b/services/router/Dockerfile index 445f002f..529a115d 100644 --- a/services/router/Dockerfile +++ b/services/router/Dockerfile @@ -12,9 +12,9 @@ COPY . . # Expose port EXPOSE 8000 -# Health check -HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ - CMD python -c "import requests; requests.get('http://localhost:8000/health')" +# Health check (using urllib - no external deps) +HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=5 \ + CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')" # Run application CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]