ammar101 commited on
Commit
2851ced
·
1 Parent(s): d4507e5

Auto-seed catalog on container startup

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -38,4 +38,4 @@ RUN mkdir -p $HOME/app/staticfiles $HOME/app/media
38
  EXPOSE 7860
39
 
40
  # Run migrations, collect static files, and start Gunicorn (all as user 1000)
41
- CMD ["sh", "-c", "python manage.py migrate && python manage.py collectstatic --noinput && gunicorn config.wsgi:application --bind 0.0.0.0:${PORT:-7860} --workers 2 --timeout 120"]
 
38
  EXPOSE 7860
39
 
40
  # Run migrations, collect static files, and start Gunicorn (all as user 1000)
41
+ CMD ["sh", "-c", "python manage.py migrate && python manage.py collectstatic --noinput && python manage.py reset_catalog && gunicorn config.wsgi:application --bind 0.0.0.0:${PORT:-7860} --workers 2 --timeout 120"]