Refactor Dockerfile and entrypoint script; add Makefile for build and test commands
This commit is contained in:
+3
-1
@@ -1,11 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
echo "Sleeping due to mysql..."
|
||||
sleep 10
|
||||
echo "Running DB migrations..."
|
||||
python manage.py migrate
|
||||
echo "Collecting STATIC..."
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py collectstatic --noinput --clear
|
||||
|
||||
echo "Running server!"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user