Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tongning committed Jun 24, 2016
1 parent c1453ad commit 0ee4c00
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions djangoctf/settings.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -38,7 +38,8 @@
"enabled": true,
"sendgrid_api_key": "redacted",
"username": "redacted",
"password": "redacted"
"password": "redacted",
"host": "smtp.somemailserver.com"
},
"logging": {
},
Expand Down

0 comments on commit 0ee4c00

Please sign in to comment.