FROM python:3.11-slim WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y --no-install-recommends \ gcc \ libpq-dev \ ffmpeg \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application COPY . . # Create data directories RUN mkdir -p /data/downloads /data/config /data/cookies EXPOSE 8080 # Development mode with reload CMD ["hypercorn", "app.main:app", "--bind", "0.0.0.0:8080", "--reload"]