Spaces:
Running
Running
File size: 638 Bytes
fa22010 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # 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"]
|