FROM python:3.9-slim RUN apt-get update && apt-get install -y \ ffmpeg \ imagemagick \ fonts-dejavu \ && rm -rf /var/lib/apt/lists/* RUN find /etc -type f -name "policy.xml" -exec sed -i '/@\*/d' {} \; WORKDIR /app RUN pip install --no-cache-dir \ flask \ requests \ faster-whisper \ moviepy==1.0.3 \ werkzeug \ google-generativeai COPY . . RUN mkdir -p downloads && chmod -R 777 /app EXPOSE 7860 CMD ["python", "app.py"]