Make migrations
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -22,12 +22,16 @@ WORKDIR itsz
|
|
| 22 |
COPY app ./misite
|
| 23 |
WORKDIR misite
|
| 24 |
|
| 25 |
-
|
|
|
|
| 26 |
|
| 27 |
RUN touch db.sqlite3
|
| 28 |
RUN chmod 777 db.sqlite3
|
| 29 |
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|