summaryrefslogtreecommitdiffstats
path: root/docker-entrypoint.sh
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-06-05 11:37:28 +0100
committerMatthew Lemon <y@yulqen.org>2024-06-05 11:37:28 +0100
commitd669200cc25e1ecd224ae83ac2b59de889923498 (patch)
tree77a73c75c7e34cdc9ebd35c437e7cc7871100c45 /docker-entrypoint.sh
parentb644ddd09a045c59d5d0d1f451de96962b368cac (diff)
Adds docker-entrypoint script
Diffstat (limited to 'docker-entrypoint.sh')
-rw-r--r--docker-entrypoint.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
new file mode 100644
index 0000000..93c5459
--- /dev/null
+++ b/docker-entrypoint.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+cd /app
+python manage.py migrate
+python manage createsuperuser --noinput
+python manage.py collectstatic --noinput
+exec gunicorn --bind ':8080' --workers 3 config.wsgi:application