new-ecg-api / Dockerfile
maxxxi100's picture
corrected Dockerfile
830861c verified
raw
history blame contribute delete
793 Bytes
FROM python:3.13.5-slim
WORKDIR /app
RUN apt-get update && apt-get install -y \
build-essential \
curl \
git \
# Instalar librerías de sistema necesarias para OpenCV y Matplotlib
libgl1-mesa-glx \
libglib2.0-0 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
COPY . . # <-- COPIA TODOS los archivos de la raíz del repositorio al contenedor
# AÑADIR ESTA LÍNEA PARA DESACTIVAR LAS MÉTRICAS Y RESOLVER EL ERROR DE PERMISOS
ENV STREAMLIT_GATHER_USAGE_STATS=false
RUN pip3 install -r requirements.txt
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
# Ejecuta 'app.py', el archivo que contiene tu lógica principal de Streamlit
ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]