# Use an official Python runtime as a parent image FROM python:3.13-slim # Set the working directory in the container WORKDIR /app # Move the requirements file COPY ./requirements.txt . # Install any needed packages specified in requirements.txt # Make sure you have a requirements.txt file in the same directory as your Dockerfile RUN pip install --no-cache-dir -r requirements.txt # Copy the current directory contents into the container at /usr/src/app COPY ./app/ . # Run bot.py when the container launches # Use the exec form to avoid issues with signal handling CMD ["python", "bot.py"]