Spaces:
Sleeping
Sleeping
Download docker/Dockerfile from codebydante/TwistedStreamingBrody: direct link, hf CLI and curl.
- Browser
- Download file 673 Bytes
-
https://huggingface.co/spaces/codebydante/TwistedStreamingBrody/resolve/main/docker/Dockerfile
- Command line
-
hf download hf://spaces/codebydante/TwistedStreamingBrody/docker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/codebydante/TwistedStreamingBrody/resolve/main/docker/Dockerfile
673 Bytes
| FROM python:3.10-slim | |
| # Evitar buffers en logs y habilitar salida limpia | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| # Instalar dependencias del sistema si fueran necesarias | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copiar requirements e instalarlos | |
| COPY docker/requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copiar el código del proyecto | |
| COPY . . | |
| # Puerto por defecto de Hugging Face Spaces | |
| EXPOSE 7860 | |
| # Comando para arrancar el bot y el servidor fantasma | |
| CMD ["python", "src/bot.py"] | |