Run migrate automatically on container start
All checks were successful
Build and push Docker image / build (push) Successful in 12s
Test / test (push) Successful in 13s

This commit is contained in:
marwin 2026-03-16 20:06:44 +01:00
parent aa0b8ee6f9
commit df601714ec

View file

@ -15,4 +15,4 @@ RUN python manage.py collectstatic --noinput
EXPOSE 8000 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"]