FROM python:3.13-slim RUN apt-get update \ && apt-get install -y --no-install-recommends ffmpeg \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir \ flask \ requests \ gunicorn \ watchdog WORKDIR /app COPY recorder.py editor.py . EXPOSE 8080 CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "1", "--threads", "4", "--timeout", "0", "recorder:app"]