chartManD commited on
Commit
9c4b986
·
1 Parent(s): 63853c9

Make migrations

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -22,16 +22,13 @@ WORKDIR itsz
22
  COPY app ./misite
23
  WORKDIR misite
24
 
25
-
26
- RUN python3 manage.py migrate
27
-
28
  RUN touch db.sqlite3
29
  RUN chmod 777 db.sqlite3
30
 
31
- RUN python3 manage.py makemigrations polls
32
- RUN python3 manage.py migrate
 
33
 
34
- CMD python3 manage.py runserver 0:7860
35
 
36
  # Verificar si python esta instalado
37
  # RUN which python || which python3 || which py
 
22
  COPY app ./misite
23
  WORKDIR misite
24
 
 
 
 
25
  RUN touch db.sqlite3
26
  RUN chmod 777 db.sqlite3
27
 
28
+ CMD python manage.py makemigrations polls; \
29
+ python3 manage.py migrate
30
+ python3 manage.py runserver 0:7860; \
31
 
 
32
 
33
  # Verificar si python esta instalado
34
  # RUN which python || which python3 || which py