fix: resolved oopsie of running migrate before copying the dir first

This commit is contained in:
ramvignesh-b
2026-04-26 11:07:51 +05:30
parent fe25231da7
commit 73e1e64a33
+2 -1
View File
@@ -4,9 +4,10 @@ WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
RUN uv run manage.py migrate
COPY . .
RUN uv run manage.py migrate
EXPOSE 8000
CMD ["uv", "run", "--frozen", "gunicorn", "--bind", "0.0.0.0:8000", "config.wsgi:application"]