Spaces:
Sleeping
Sleeping
Download Dockerfile from codebydante/TwistedStreamingBrody: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/spaces/codebydante/TwistedStreamingBrody/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/codebydante/TwistedStreamingBrody/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/codebydante/TwistedStreamingBrody/resolve/main/Dockerfile
775 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 requirements*.txt docker/requirements*.txt ./ | |
| RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; else pip install --no-cache-dir -r docker/requirements.txt; fi | |
| # 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"] | |