OptiJuegos commited on
Commit
8e653ad
verified
1 Parent(s): 16f26da

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # Instala Python 3
14
- RUN apt-get update && apt-get install -y python3
15
-
16
- # Instala pip
17
- RUN apt-get update && apt-get install -y python3-pip
18
-
19
- # Instala venv
20
- RUN apt-get update && apt-get install -y python3-venv
21
-
22
- # Crea el entorno virtual
23
- RUN python3 -m venv /app/venv
24
-
25
- # Activa el entorno virtual
26
- RUN /app/venv/bin/pip install -U pip
27
- RUN /app/venv/bin/pip install watchdog uvicorn fastapi
28
-
29
- # Copia el archivo stream_videos.py
30
- COPY stream_videos.py /app/stream_videos.py
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"]