Download Dockerfile from PythonMindset/dakar-power-prediction: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/spaces/PythonMindset/dakar-power-prediction/resolve/bec18eded58ff6af7c7d514b6f05a9c7c83455b7/Dockerfile
- Command line
-
hf download hf://spaces/PythonMindset/dakar-power-prediction@bec18eded58ff6af7c7d514b6f05a9c7c83455b7/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PythonMindset/dakar-power-prediction/resolve/bec18eded58ff6af7c7d514b6f05a9c7c83455b7/Dockerfile
451 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copier les fichiers nécessaires | |
| COPY requirements.txt . | |
| COPY streamlit_app ./streamlit_app | |
| COPY models ./models | |
| COPY data ./data | |
| COPY src ./src | |
| COPY .streamlit ./.streamlit | |
| # Installer les dépendances | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Exposer le port | |
| EXPOSE 8501 | |
| # Lancer l'application | |
| CMD ["streamlit", "run", "streamlit_app/app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |