# Use the official Python image from the Docker Hub FROM python:3.9-slim # Set environment variables ENV PYTHONUNBUFFERED=1 # Set the working directory WORKDIR /app # Copy the requirements file to the working directory COPY requirements.txt . # Install the dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the application code to the working directory COPY . . # Command to run the bot CMD ["python", "bot.py"]