Spaces:
Running
Running
Download Dockerfile from H3y-sam/Telegram-Bot: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/H3y-sam/Telegram-Bot/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/H3y-sam/Telegram-Bot/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/H3y-sam/Telegram-Bot/resolve/main/Dockerfile
638 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.11-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Copy the current directory contents into the container at /app | |
| COPY . /app | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Create the data directory | |
| RUN mkdir -p data | |
| # Define environment variables (These will be overwritten by Hugging Face Secrets) | |
| ENV BOT_TOKEN="" | |
| ENV GEMINI_API_KEY="" | |
| ENV ADMIN_USER_IDS="" | |
| ENV GIST_ID="" | |
| ENV GIST_TOKEN="" | |
| # Run bot.py when the container launches | |
| CMD ["python", "bot.py"] | |