Spaces:
Sleeping
Sleeping
Commit
·
652245c
1
Parent(s):
c2c7859
Dockerfile Updated
Browse files- Dockerfile +4 -6
Dockerfile
CHANGED
@@ -14,9 +14,7 @@ RUN ls -la
|
|
14 |
RUN chmod 777 db.sqlite3
|
15 |
RUN chmod 777 ./polls/migrations
|
16 |
|
17 |
-
CMD
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
python3 manage.py runserver 0:7860 \
|
22 |
-
"
|
|
|
14 |
RUN chmod 777 db.sqlite3
|
15 |
RUN chmod 777 ./polls/migrations
|
16 |
|
17 |
+
CMD python3 manage.py makemigrations; \
|
18 |
+
python3 manage.py migrate; \
|
19 |
+
python3 manage.py createsuperuser --noinput; \
|
20 |
+
python3 manage.py runserver 0:7860
|
|
|
|