chartManD commited on
Commit
e0c29b3
·
1 Parent(s): 47db278

Make migrations

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