Spaces:
Sleeping
Sleeping
Config Dockerfile removida proteccion de entorno
Browse files- Dockerfile +4 -7
Dockerfile
CHANGED
|
@@ -2,24 +2,21 @@ FROM debian:12.10
|
|
| 2 |
|
| 3 |
RUN apt -y update
|
| 4 |
RUN apt install -y python3 python3-pip python3-mysqldb
|
| 5 |
-
|
|
|
|
| 6 |
|
| 7 |
WORKDIR /app
|
| 8 |
|
| 9 |
COPY . .
|
| 10 |
-
RUN ls
|
| 11 |
-
RUN pip --version
|
| 12 |
-
RUN python3 --version
|
| 13 |
|
| 14 |
-
RUN chmod 777 ./requirements.txt
|
| 15 |
RUN pip install -r ./requirements.txt
|
| 16 |
|
| 17 |
RUN python3 manage.py migrate
|
| 18 |
|
| 19 |
-
RUN chmod 777 ./create_superuser.py
|
| 20 |
RUN python manege.py shell < create_superuser.py
|
| 21 |
|
| 22 |
-
CMD ["
|
|
|
|
| 23 |
|
| 24 |
# python3 manage.py runserver 0:7860; \
|
| 25 |
|
|
|
|
| 2 |
|
| 3 |
RUN apt -y update
|
| 4 |
RUN apt install -y python3 python3-pip python3-mysqldb
|
| 5 |
+
|
| 6 |
+
RUN PIP_BREAK_SYSTEM_PACKAGES=1
|
| 7 |
|
| 8 |
WORKDIR /app
|
| 9 |
|
| 10 |
COPY . .
|
|
|
|
|
|
|
|
|
|
| 11 |
|
|
|
|
| 12 |
RUN pip install -r ./requirements.txt
|
| 13 |
|
| 14 |
RUN python3 manage.py migrate
|
| 15 |
|
|
|
|
| 16 |
RUN python manege.py shell < create_superuser.py
|
| 17 |
|
| 18 |
+
CMD ["python3", "manage.py", "runserver", "0.0.0.0:7860"]
|
| 19 |
+
# CMD ["gunicorn", "cata_system.wsgi:tecnicas", "--bind", "0.0.0.0:7860"]
|
| 20 |
|
| 21 |
# python3 manage.py runserver 0:7860; \
|
| 22 |
|