chartManD commited on
Commit
8540a10
·
1 Parent(s): 4d6d38c

Config Dockerfile, se agrega python3 -m

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -58
Dockerfile CHANGED
@@ -14,8 +14,8 @@ RUN python -m venv /opt/venv
14
  ENV PATH="/opt/venv/bin:$PATH"
15
  RUN ls -lah
16
 
17
- RUN pip install --upgrade pip && \
18
- pip install -r requirements.txt
19
 
20
  RUN python manage.py migrate
21
  RUN python manage.py tailwind build
@@ -25,59 +25,4 @@ RUN python manage.py shell < create_superuser.py
25
 
26
  EXPOSE 7860
27
 
28
- CMD ["python3", "manage.py", "runserver", "0.0.0.0:7860"]
29
-
30
- #########
31
-
32
- # FROM python:3.11-slim
33
-
34
- # # Instalar dependencias del sistema
35
- # RUN apt-get update && apt-get install -y \
36
- # build-essential \
37
- # libpq-dev \
38
- # python3-dev \
39
- # && rm -rf /var/lib/apt/lists/*
40
-
41
- # # Establecer directorio de trabajo
42
- # WORKDIR /app
43
-
44
- # # Copiar requirements primero para cachear dependencias
45
- # COPY requirements.txt .
46
-
47
- # # Crear y activar entorno virtual
48
- # RUN python -m venv /opt/venv
49
- # ENV PATH="/opt/venv/bin:$PATH"
50
-
51
- # # Instalar dependencias de Python
52
- # RUN pip install --upgrade pip && \
53
- # pip install -r requirements.txt
54
-
55
- # # Copiar el resto de la aplicación
56
- # COPY . .
57
-
58
- # # Exponer puerto
59
- # EXPOSE 7860
60
-
61
- # # Comando para ejecutar la aplicación
62
- # CMD ["python", "manage.py", "runserver", "0.0.0.0:7860"]
63
-
64
- # FROM debian:12.10
65
-
66
- # RUN apt -y update
67
- # RUN apt install -y python3 python3-pip python3-mysqldb
68
-
69
- # RUN PIP_BREAK_SYSTEM_PACKAGES=1
70
-
71
- # WORKDIR /app
72
-
73
- # COPY . .
74
-
75
- # RUN pip install -r ./requirements.txt
76
-
77
- # RUN python3 manage.py migrate
78
-
79
- # RUN python manege.py shell < create_superuser.py
80
-
81
- # CMD ["python3", "manage.py", "runserver", "0.0.0.0:7860"]
82
- # CMD ["gunicorn", "cata_system.wsgi:tecnicas", "--bind", "0.0.0.0:7860"]
83
-
 
14
  ENV PATH="/opt/venv/bin:$PATH"
15
  RUN ls -lah
16
 
17
+ RUN python3 -m pip install --upgrade pip && \
18
+ python3 -m pip install -r requirements.txt
19
 
20
  RUN python manage.py migrate
21
  RUN python manage.py tailwind build
 
25
 
26
  EXPOSE 7860
27
 
28
+ CMD ["python3", "manage.py", "runserver", "0.0.0.0:7860"]