File size: 445 Bytes
a8fdecf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
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"]
|