Download Dockerfile from daniel-saed/F1-steering-angle-model: direct link, hf CLI and curl.
- Browser
- Download file 793 Bytes
-
https://huggingface.co/spaces/daniel-saed/F1-steering-angle-model/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/daniel-saed/F1-steering-angle-model/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/daniel-saed/F1-steering-angle-model/resolve/main/Dockerfile
793 Bytes
| 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"] |