Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM debian:stable
|
2 |
+
|
3 |
+
USER root
|
4 |
+
|
5 |
+
ENV DEBIAN_FRONTEND noninteractive
|
6 |
+
|
7 |
+
COPY . /app
|
8 |
+
|
9 |
+
RUN chmod -R 777 /app
|
10 |
+
|
11 |
+
WORKDIR /app
|
12 |
+
|
13 |
+
RUN apt-get update && apt-get install -y ffmpeg python3 python3-pip python3-venv
|
14 |
+
|
15 |
+
RUN python3 -m venv /app/venv
|
16 |
+
|
17 |
+
RUN /app/venv/bin/pip install watchdog
|
18 |
+
RUN /app/venv/bin/pip install uvicorn
|
19 |
+
RUN /app/venv/bin/pip install fastapi
|
20 |
+
|
21 |
+
COPY stream_videos.py /app/stream_videos.py
|
22 |
+
|
23 |
+
CMD ["/app/venv/bin/python", "/app/stream_videos.py"]
|