Spaces:
Sleeping
Sleeping
Auto-seed catalog on container startup
Browse files- 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"]
|