Skip to content

Commit

Permalink
fix docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
Linzecong committed Oct 22, 2019
1 parent d145eb3 commit acf00e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Backend/Dockerfile
Expand Up @@ -9,4 +9,4 @@ ENV DB_PORT 3306
RUN apt-get update && apt-get install python-django -y
RUN pip install -r requirements.txt
EXPOSE 8000
CMD python manage.py makemigrations && python manage.py makemigrations judgestatus problem user contest board blog wiki && python manage.py migrate && echo "from django.contrib.auth.models import User; User.objects.filter(email=\"admin@example.com\").delete(); User.objects.create_superuser(\"admin\", \"admin@example.com\", \"admin\")" | python manage.py shell && python manage.py runserver 0.0.0.0:8000
CMD python manage.py makemigrations && python manage.py makemigrations judgestatus item problem user contest board blog wiki && python manage.py migrate && echo "from django.contrib.auth.models import User; User.objects.filter(email=\"admin@example.com\").delete(); User.objects.create_superuser(\"admin\", \"admin@example.com\", \"admin\")" | python manage.py shell && python manage.py runserver 0.0.0.0:8000
2 changes: 1 addition & 1 deletion docker-compose-build.yml
Expand Up @@ -20,7 +20,7 @@ services:
/bin/bash -c '
sleep 40 ;
python manage.py makemigrations &&
python manage.py makemigrations judgestatus problem user contest board blog wiki &&
python manage.py makemigrations judgestatus item problem user contest board blog wiki &&
python manage.py migrate &&
echo "from django.contrib.auth.models import User; User.objects.filter(email=\"admin@example.com\").delete(); User.objects.create_superuser(\"admin\", \"admin@example.com\", \"admin\")" | python manage.py shell &&
python manage.py runserver 0.0.0.0:8000
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Expand Up @@ -20,7 +20,7 @@ services:
/bin/bash -c '
sleep 40 ;
python manage.py makemigrations &&
python manage.py makemigrations judgestatus problem user contest board blog wiki &&
python manage.py makemigrations judgestatus item problem user contest board blog wiki &&
python manage.py migrate &&
echo "from django.contrib.auth.models import User; User.objects.filter(email=\"admin@example.com\").delete(); User.objects.create_superuser(\"admin\", \"admin@example.com\", \"admin\")" | python manage.py shell &&
python manage.py runserver 0.0.0.0:8000
Expand Down

0 comments on commit acf00e0

Please sign in to comment.