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"]