Add Docker support with Dockerfile and entrypoin
This commit is contained in:
parent
75296c903a
commit
0e1b1f5a35
9 changed files with 208 additions and 2 deletions
7
entrypoint.sh
Normal file
7
entrypoint.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
python manage.py collectstatic --noinput
|
||||
python manage.py migrate --noinput
|
||||
python manage.py create_default_admin
|
||||
exec gunicorn photo21.wsgi:application --bind 0.0.0.0:8000 --workers 3
|
||||
Loading…
Add table
Add a link
Reference in a new issue