File size: 456 Bytes
5fbeff0
 
 
9798c53
5fbeff0
cab68b2
5fbeff0
 
7107599
 
 
5fbeff0
 
a1a3e59
8821580
a0d0e89
b9e273c
4412fd0
4b3983f
69f4bc2
a9d4dbe
167eac6
447a38f
7f93db7
167eac6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Definir la imagen
FROM debian:12.10

 
RUN apt -y update
RUN apt install -y python3 python3-django python3-mysqldb


RUN mkdir app-itsz -p 
WORKDIR app-itsz



COPY app ./mysite 
WORKDIR mysite 

RUN touch db.sqlite3
RUN ls -la
RUN chmod 777 db.sqlite3
RUN chmod 777 ./polls/migrations

CMD  python3 manage.py makemigrations; \
     python3 manage.py migrate;  \
     python3 manage.py createsuperuser --noinput; \
     python3 manage.py runserver 0:7860