Files
zyrarbot/Dockerfile
T

24 lines
523 B
Docker

FROM python:3.13-slim
# Install system dependencies including opus and ffmpeg
RUN apt-get update && apt-get install -y \
libopus0 \
libopus-dev \
ffmpeg \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements first to leverage Docker cache
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Command to run the bot
CMD ["python", "-u", "main.py"]