Spaces:
Sleeping
Sleeping
File size: 793 Bytes
039f7a7 eaeda87 06e8c98 eaeda87 90637a1 c9c25b4 eaeda87 06e8c98 89aaa0a 06e8c98 eaeda87 90637a1 c9c25b4 864d6ad 90637a1 40a95d8 eaeda87 c9c25b4 |
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 |
FROM python:3.11
WORKDIR /app
# Dependencias de sistema para onnxruntime, OpenCV y video
RUN apt-get update && apt-get install -y \
build-essential \
libgl1 \
libglib2.0-0 \
curl \
git \
libstdc++6 \
libgomp1 \
libopenblas-dev \
liblapack-dev \
libomp-dev \
ffmpeg \
libsm6 \
libxext6 \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt ./
COPY . ./
# Instalar requirements con secretos si es necesario
RUN --mount=type=secret,id=MY_API_KEY,mode=0444 \
export MY_API_KEY=$(cat /run/secrets/MY_API_KEY) && \
pip3 install -r requirements.txt
EXPOSE 8501
HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
ENTRYPOINT ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"] |