FROM python:3.10-slim WORKDIR /app # Install system dependencies + ffmpeg + deno RUN apt-get update && apt-get install -y \ ffmpeg \ curl \ unzip \ && curl -fsSL https://deno.land/install.sh | sh \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Add deno to PATH ENV DENO_INSTALL="/root/.deno" ENV PATH="${DENO_INSTALL}/bin:${PATH}" # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Install latest yt-dlp RUN pip install --no-cache-dir --upgrade yt-dlp # Copy app files COPY . . EXPOSE 7860 CMD ["python", "server.py"]