Spaces:
Paused
Paused
| # Start with a standard Python base image | |
| FROM python:3.10-slim | |
| # Set the working directory inside the container | |
| WORKDIR /app | |
| # IMPORTANT: Install ffmpeg | |
| # First, update the package lists, then install ffmpeg without asking for confirmation (-y) | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # Copy the requirements file first to leverage Docker's layer caching | |
| COPY requirements.txt . | |
| # Install the Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of your application's code | |
| COPY . . | |
| # Command to run your bot when the container starts | |
| CMD ["python", "bot.py"] |