diff --git a/docker/Dockerfile b/docker/Dockerfile index e10c6c90..d9373c29 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -24,7 +24,7 @@ RUN apt-get update && \ pip install --no-cache-dir -r requirements.txt && \ pip install --no-cache-dir -r requirements-pytorch.txt && \ pip install --no-cache-dir -r requirements-sentence-transformers.txt && \ - python manage.py collectstatic && \ + python manage.py collectstatic --noinput && \ echo "installing sentence-transformers" && \ pip install sentence-transformers==3.4.1 && \ cd /app/frontend && \ diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index e3a1f7d5..76a2cb0c 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -198,13 +198,6 @@ fi cd /app echo_with_timestamp "Running Django commands..." python manage.py migrate --noinput || true -echo_with_timestamp "Checking if Django superuser exists..." -if ! python manage.py shell -c "from django.contrib.auth import get_user_model; exit(0) if get_user_model().objects.filter(username='${DJANGO_SUPERUSER_USERNAME}').exists() else exit(1)"; then - echo_with_timestamp "Superuser does not exist. Creating..." - python manage.py createsuperuser --noinput || true -else - echo_with_timestamp "Superuser already exists. Skipping creation." -fi # Always start Gunicorn echo "🚀 Starting Gunicorn..."