From df601714eca510dca8e2f9640bfa1150cf2fb529 Mon Sep 17 00:00:00 2001 From: marwin Date: Mon, 16 Mar 2026 20:06:44 +0100 Subject: [PATCH] Run migrate automatically on container start --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0f3ca40..fc23571 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,4 @@ RUN python manage.py collectstatic --noinput EXPOSE 8000 -CMD ["gunicorn", "diora.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2"] +CMD ["sh", "-c", "python manage.py migrate --noinput && gunicorn diora.wsgi:application --bind 0.0.0.0:8000 --workers 2"]