From f79795ba49bc64dbbc556e719be1ccf68b776b34 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 03:42:26 +0000 Subject: [PATCH 1/2] Initial plan From d0fc9ffebfda7feaa14a696b75bca953e4d4eff5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 7 Nov 2025 03:44:54 +0000 Subject: [PATCH 2/2] Fix healthcheck to use curl instead of Python requests Co-authored-by: Yosoyepa <49212112+Yosoyepa@users.noreply.github.com> --- backend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 3661d69..723d1aa 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -22,6 +22,7 @@ WORKDIR /app RUN apt-get update && apt-get install -y --no-install-recommends \ gcc \ postgresql-client \ + curl \ && rm -rf /var/lib/apt/lists/* # Copy requirements first (for layer caching) @@ -42,7 +43,7 @@ EXPOSE 8000 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ - CMD python -c "import requests; requests.get('http://localhost:8000/health')" || exit 1 + CMD curl -f http://localhost:8000/health || exit 1 # Run application CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000"]