build: update deployment for Docker

This commit is contained in:
James Graham
2022-03-17 13:58:07 +00:00
parent ba6701ee67
commit 055e1080dd
9 changed files with 150 additions and 28 deletions

View File

@@ -1,5 +1,8 @@
#!/bin/sh
#!/bin/bash
python manage.py migrate \
&& python manage.py collectstatic --no-input \
&& exec "$@"
set -eo pipefail
python manage.py migrate
python manage.py collectstatic --no-input
exec "$@"