From ca835a33b460b87956be063509d37586d26660de Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Tue, 30 Aug 2022 09:13:43 +0100 Subject: [PATCH] Run migrations on container start --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d5e7655..fca72c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ COPY --chown=website ./website ./website RUN SECRET_KEY=none python manage.py collectstatic --noinput --clear -v3 -CMD gunicorn -c etc/gunicorn.conf.py +CMD python manage.py migrate --noinput && gunicorn -c etc/gunicorn.conf.py # Just dev stuff FROM production as dev