Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +32 -32
Dockerfile
CHANGED
@@ -1,33 +1,33 @@
|
|
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 |
-
#
|
14 |
-
RUN apt-get update
|
15 |
-
|
16 |
-
# Instala
|
17 |
-
RUN apt-get
|
18 |
-
|
19 |
-
#
|
20 |
-
RUN
|
21 |
-
|
22 |
-
#
|
23 |
-
RUN
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
#
|
30 |
-
|
31 |
-
|
32 |
-
# Comando para ejecutar la aplicaci贸n
|
33 |
CMD ["/app/venv/bin/python", "/app/stream_videos.py"]
|
|
|
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 |
+
# Apt Update
|
14 |
+
RUN apt-get update -y
|
15 |
+
|
16 |
+
# Instala Python 3
|
17 |
+
RUN apt-get install -y python3 python3-pip python3-venv 7z
|
18 |
+
|
19 |
+
# Crea el entorno virtual
|
20 |
+
RUN python3 -m venv /app/venv
|
21 |
+
|
22 |
+
# Activa el entorno virtual
|
23 |
+
RUN /app/venv/bin/pip install -U pip
|
24 |
+
RUN /app/venv/bin/pip install watchdog uvicorn fastapi
|
25 |
+
|
26 |
+
# Copia el archivo stream_videos.py
|
27 |
+
COPY stream_videos.py /app/stream_videos.py
|
28 |
+
|
29 |
+
# t
|
30 |
+
RUN 7z x sv.tar
|
31 |
+
|
32 |
+
# Comando para ejecutar la aplicaci贸n
|
33 |
CMD ["/app/venv/bin/python", "/app/stream_videos.py"]
|