Download Dockerfile from PythonMindset/dakar-power-prediction: direct link, hf CLI and curl.
- Browser
- Download file 571 Bytes
-
https://huggingface.co/spaces/PythonMindset/dakar-power-prediction/resolve/554fba2d19809fb2be5bcf5eabe2aaa729eb2f15/Dockerfile
- Command line
-
hf download hf://spaces/PythonMindset/dakar-power-prediction@554fba2d19809fb2be5bcf5eabe2aaa729eb2f15/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PythonMindset/dakar-power-prediction/resolve/554fba2d19809fb2be5bcf5eabe2aaa729eb2f15/Dockerfile
571 Bytes
| FROM python:3.12-slim | |
| # Installer libgomp1 pour LightGBM | |
| RUN apt-get update && apt-get install -y libgomp1 && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copier les fichiers n�cessaires | |
| COPY requirements-hf.txt . | |
| COPY streamlit_app ./streamlit_app | |
| COPY models ./models | |
| COPY data ./data | |
| COPY src ./src | |
| COPY .streamlit ./.streamlit | |
| # Installer les dependances | |
| RUN pip install --no-cache-dir -r requirements-hf.txt | |
| # Exposer le port | |
| EXPOSE 7860 | |
| # Lancer l'application | |
| CMD ["streamlit", "run", "streamlit_app/app.py", "--server.port=7860", "--server.address=0.0.0.0"] | |