Spaces:
Running
Running
Download Dockerfile from daniel-saed/corner-forecast: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/spaces/daniel-saed/corner-forecast/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/daniel-saed/corner-forecast/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/daniel-saed/corner-forecast/resolve/main/Dockerfile
461 Bytes
| FROM python:3.11-slim | |
| # Establecer directorio de trabajo | |
| WORKDIR /app | |
| # Copiar requirements | |
| COPY requirements.txt . | |
| # Instalar dependencias | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copiar todo el código | |
| COPY . . | |
| # Exponer el puerto que usa Hugging Face Spaces | |
| EXPOSE 7860 | |
| # ✅ COMANDO PARA FASTAPI EN HUGGING FACE SPACES | |
| CMD ["streamlit", "run", "streamlit_app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.headless=true"] |