FROM debian:stable | |
USER root | |
ENV DEBIAN_FRONTEND noninteractive | |
COPY . /app | |
RUN chmod -R 777 /app | |
WORKDIR /app | |
RUN apt-get update && apt-get install -y ffmpeg python3 python3-pip python3-venv | |
RUN python3 -m venv /app/venv | |
RUN /app/venv/bin/pip install watchdog | |
RUN /app/venv/bin/pip install uvicorn | |
RUN /app/venv/bin/pip install fastapi | |
COPY stream_videos.py /app/stream_videos.py | |
CMD ["/app/venv/bin/python", "/app/stream_videos.py"] | |