From 4cf45748dec5f8189e0e354f01d930fd1f834e5e Mon Sep 17 00:00:00 2001 From: akadmin Date: Mon, 7 Sep 2026 14:31:48 +0000 Subject: [PATCH] fix(deploy): run uvicorn from backend/ and health-check /api/health --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2fb9fb3..34b50f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,7 +35,8 @@ EXPOSE 8000 # Health check HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \ - CMD curl -f http://localhost:8000/health || exit 1 + CMD curl -f http://localhost:8000/api/health || exit 1 -# Run FastAPI server with static file serving +# Run from the backend package dir so `app.main:app` imports correctly +WORKDIR /app/backend CMD ["python", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]