Spaces:
Runtime error
Runtime error
Download Dockerfile from W1xced/CollapseBot: direct link, hf CLI and curl.
- Browser
- Download file 676 Bytes
-
https://huggingface.co/spaces/W1xced/CollapseBot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/W1xced/CollapseBot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/W1xced/CollapseBot/resolve/main/Dockerfile
676 Bytes
| FROM python:3.12-slim | |
| # Устанавливаем рабочую директорию | |
| WORKDIR /app | |
| ENV DOCKER_ENV=true | |
| # Копируем только файл зависимостей сначала (для быстроты сборки) | |
| COPY requirements.txt . | |
| # Устанавливаем зависимости | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Создаем пользователя для безопасности (Hugging Face это любит) | |
| RUN useradd -m botuser | |
| COPY . . | |
| RUN chown -R botuser:botuser /app | |
| USER botuser | |
| # Открываем порт для Hugging Face | |
| EXPOSE 7860 | |
| # Запускаем бота | |
| CMD ["python", "main.py"] |