diff options
author | Matthew Lemon <y@yulqen.org> | 2024-06-05 16:46:44 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-06-05 16:46:44 +0100 |
commit | de6b99df50afba811add3c5109195dc35319bf27 (patch) | |
tree | 815c303cac4bd64798e935d601d4936b70db3fa7 | |
parent | 1aa13bfb45d1f9c06ea407f25fd4a416b879e164 (diff) |
fix....
-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 |