Moibe commited on
Commit
3c1b725
·
1 Parent(s): b66ed3f

Rollback Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -13
Dockerfile CHANGED
@@ -1,19 +1,14 @@
1
- FROM python:3.9
2
 
3
- WORKDIR /app
4
 
5
- # Crear entorno virtual
6
- RUN python -m venv /opt/venv
7
 
8
- # Activar venv y actualizar pip
9
- RUN /opt/venv/bin/pip install --upgrade pip
10
 
11
- # Copiar e instalar requerimientos
12
- COPY requirements.txt .
13
- RUN /opt/venv/bin/pip install -r requirements.txt
14
-
15
- # Copiar el código
16
  COPY . .
17
 
18
- # Usar el venv para correr la app
19
- CMD ["/opt/venv/bin/python", "app.py"]
 
 
 
1
+ FROM python:3.13
2
 
3
+ WORKDIR /code
4
 
5
+ COPY ./requirements.txt /code/requirements.txt
 
6
 
7
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
8
 
 
 
 
 
 
9
  COPY . .
10
 
11
+ # RUN chown -R $(id -u):$(id -g) /code/archivos
12
+ RUN chmod -R a+w /code/archivos
13
+
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]