Dockerfile 453 B

1234567891011121314151617
  1. # Use an official Python runtime as a parent image
  2. FROM python:3.11-slim
  3. # Set the working directory in the container
  4. WORKDIR /app
  5. # Copy the dependencies file to the working directory
  6. COPY requirements.txt .
  7. # Install any needed dependencies
  8. RUN pip install --no-cache-dir -r requirements.txt
  9. # Copy the content of the local src directory to the working directory
  10. COPY bot.py .
  11. # command to run on container start
  12. CMD [ "python", "-u", "bot.py" ]