File size: 934 Bytes
37fa2c9
4dacb3f
e021354
37fa2c9
4dacb3f
e021354
37fa2c9
4dacb3f
e021354
37fa2c9
4dacb3f
e021354
37fa2c9
4dacb3f
e021354
37fa2c9
4dacb3f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
26
27
28
29
30
31
32
33
34
35
36
37
# Usa una imagen base de Python
#FROM python:3.11

# Establece el directorio de trabajo dentro del contenedor
#WORKDIR /code

# Copia el archivo requirements.txt en el contenedor
#COPY ./requirements.txt /code/requirements.txt

# Instala las dependencias
#RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

# Copia el resto de tu c贸digo de aplicaci贸n al contenedor
#COPY . .

# El CMD deber铆a reflejar la forma en que se ejecuta tu aplicaci贸n Flask
#CMD ["gunicorn", "app:app", "--workers", "4", "--bind", "0.0.0.0:7860", "--timeout", "120", "--keep-alive", "5



FROM python:3.11

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

COPY . /code

# Streamlit uses port 8501 by default, ensure your container allows traffic on this port
EXPOSE 8501

# Run Streamlit on container startup
ENTRYPOINT ["streamlit", "run"]
CMD ["app.py"]