aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 01b189d..942f1f6 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -45,7 +45,7 @@ RUN service postgresql start \
# Create a admin user (Insecure note, this creates a default user, username: admin/admin)
RUN /start.sh \
- && echo "from django.contrib.auth.models import User; User.objects.create_superuser('admin', 'admin@localhost.com', 'admin')" | lava-server manage shell \
+ && lava-server manage users add --passwd admin --staff --superuser --email admin@example.com admin \
&& /stop.sh
# Install latest