From fe25231da7b96ff082440171ff1b6a1eda08e208 Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Sun, 26 Apr 2026 11:01:21 +0530 Subject: [PATCH] fix: update backed docker to migrate db before running server --- backend/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 8b4a99e..676144b 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -4,8 +4,9 @@ WORKDIR /app COPY pyproject.toml uv.lock ./ RUN uv sync --frozen --no-dev +RUN uv run manage.py migrate COPY . . EXPOSE 8000 -CMD ["uv", "run", "--frozen", "gunicorn", "--bind", "0.0.0.0:8000", "config.wsgi:application"] \ No newline at end of file +CMD ["uv", "run", "--frozen", "gunicorn", "--bind", "0.0.0.0:8000", "config.wsgi:application"]