Spaces:
Paused
Paused
Download Dockerfile from saske560/userbotsaskeds: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/spaces/saske560/userbotsaskeds/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/saske560/userbotsaskeds/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/saske560/userbotsaskeds/resolve/main/Dockerfile
1.25 kB
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # TG UserBot β Dockerfile para Hugging Face Spaces (puerto 7860) | |
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FROM python:3.11-slim | |
| # HF Spaces requiere usuario no-root uid 1000 | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| HOME=/home/user \ | |
| PORT=7860 | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| # Dependencias del sistema (necesarias para tgcrypto) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| gcc \ | |
| libssl-dev \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Dependencias Python | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # CΓ³digo fuente | |
| COPY --chown=user:user . . | |
| # Directorios con permisos de escritura | |
| RUN mkdir -p plugins utils data temp && chown -R user:user /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "-u", "main.py"] | |