Download Dockerfile from dnext/rfp_telegram_bot_old: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/spaces/dnext/rfp_telegram_bot_old/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dnext/rfp_telegram_bot_old/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dnext/rfp_telegram_bot_old/resolve/main/Dockerfile
295 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # huggingface specific port | |
| EXPOSE 7860 | |
| # Start the bot and keep the container alive(idk it is working or not) | |
| CMD ["sh", "-c", "python bot_telegram.py & tail -f /dev/null"] | |