diff options
-rw-r--r-- | Dockerfile | 3 | ||||
-rwxr-xr-x | docker-entrypoint.sh | 2 |
2 files changed, 2 insertions, 3 deletions
@@ -19,8 +19,7 @@ RUN mkdir -p /app/static/css /app/static/js /app/static/img # Install Python dependencies RUN pip install -U "pip>=24.0.0" && \ pip install -r requirements.txt && \ - python manage.py collectstatic --noinput && \ - python manage.py createsuperuser --noinput + python manage.py collectstatic --noinput # Switch to non-root user USER 1001 diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 6c3efca..2b17530 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -6,7 +6,7 @@ python manage.py migrate # Try to create a superuser, skip if email is already taken echo "Attempting to create superuser..." -#python manage.py createsuperuser --noinput || true +python manage.py createsuperuser --noinput || true # Collect static files #python manage.py collectstatic --noinput |