FROM python:3.12-slim # Install ffmpeg (needed for your script) RUN apt-get update && \ apt-get install -y ffmpeg && \ apt-get clean && rm -rf /var/lib/apt/lists/* RUN pip install watchdog # Set working directory inside container WORKDIR /app # Copy your script COPY main.py /app/main.py # Install any Python dependencies if needed # RUN pip install -r requirements.txt # Copy watchdog script (or create inside Docker) COPY watcher.py /app/watcher.py CMD ["python3", "watcher.py"]