Add Docker support with Dockerfile and entrypoin

This commit is contained in:
krek0 2026-05-03 16:54:46 +02:00
parent a41dfb6f94
commit 64f3b0cdbf
9 changed files with 208 additions and 2 deletions

7
entrypoint.sh Normal file
View 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