Spaces:
Runtime error
Runtime error
Download Dockerfile.txt from DesarrolloTT/DataSuitePro: direct link, hf CLI and curl.
- Browser
- Download file 769 Bytes
-
https://huggingface.co/spaces/DesarrolloTT/DataSuitePro/resolve/main/Dockerfile.txt
- Command line
-
hf download hf://spaces/DesarrolloTT/DataSuitePro/Dockerfile.txt
-
curl -L -o Dockerfile.txt https://huggingface.co/spaces/DesarrolloTT/DataSuitePro/resolve/main/Dockerfile.txt
769 Bytes
| # Usa una imagen oficial de Python | |
| FROM python:3.10-slim | |
| # Evita que Python guarde archivos .pyc y fuerza el flush del stdout | |
| ENV PYTHONDONTWRITEBYTECODE 1 | |
| ENV PYTHONUNBUFFERED 1 | |
| # Crea y establece el directorio de trabajo | |
| WORKDIR /app | |
| # Copia los archivos del proyecto | |
| COPY . /app | |
| # Instala dependencias | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Exponer el puerto usado por Streamlit o FastAPI | |
| EXPOSE 7860 | |
| # Comando de inicio (elige uno de los dos según qué quieras mostrar) | |
| # Opción A - Mostrar interfaz Streamlit | |
| CMD ["streamlit", "run", "frontend/web/app.py", "--server.port", "7860", "--server.address", "0.0.0.0"] | |
| # Opción B - Mostrar API FastAPI | |
| # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |