Spaces:
Paused
Paused
Download Dockerfile from WalleGriffkinder/tgbotapi: direct link, hf CLI and curl.
- Browser
- Download file 556 Bytes
-
https://huggingface.co/spaces/WalleGriffkinder/tgbotapi/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/WalleGriffkinder/tgbotapi/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/WalleGriffkinder/tgbotapi/resolve/main/Dockerfile
556 Bytes
| FROM divideprojects/docker-telegram-bot-api:latest | |
| ENV TELEGRAM_API_ID=$TELEGRAM_API_ID | |
| ENV TELEGRAM_API_HASH=$TELEGRAM_API_HASH | |
| ENV TELEGRAM_LOCAL=true | |
| # Создаем директорию для данных и даем права | |
| RUN mkdir -p /var/lib/telegram-bot-api && \ | |
| chmod 777 /var/lib/telegram-bot-api | |
| # Для Hugging Face нужен порт 7860 | |
| EXPOSE 7860 | |
| # Запускаем сервер на порту 7860 вместо 8081 | |
| ENTRYPOINT ["telegram-bot-api"] | |
| CMD ["--local", "--http-port=7860", "--dir=/var/lib/telegram-bot-api"] |