diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b479477 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM django:onbuild +RUN mv /usr/src/app/djangoctf/settings.json.example /usr/src/app/djangoctf/settings.json +RUN cd /usr/src/app && python manage.py collectstatic --noinput && python manage.py makemigrations ctfapp --noinput && python manage.py migrate --noinput diff --git a/djangoctf/settings.json.example b/djangoctf/settings.json.example index 3ccbd83..1e0f60d 100644 --- a/djangoctf/settings.json.example +++ b/djangoctf/settings.json.example @@ -5,7 +5,7 @@ "ctf_name": "angstromCTF", "ctf_platform_domain": "angstromctf.com", "allowed_hosts": [ - "angstromctf.com","www.angstromctf.com","platform1.angstromctf.com" + "angstromctf.com","www.angstromctf.com","localhost" ], "cache": { "enabled": false, @@ -38,7 +38,8 @@ "enabled": true, "sendgrid_api_key": "redacted", "username": "redacted", - "password": "redacted" + "password": "redacted", + "host": "smtp.somemailserver.com" }, "logging": { },