SorovotPelo commited on
Commit
129d012
verified
1 Parent(s): 0ff9df2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -9
Dockerfile CHANGED
@@ -4,31 +4,35 @@ USER root
4
 
5
  ENV DEBIAN_FRONTEND noninteractive
6
 
 
7
  COPY . /app
8
 
 
9
  RUN chmod -R 777 /app
10
- RUN cd app
11
 
12
  WORKDIR /app
13
 
14
  # Apt Update
15
  RUN apt-get update -y
16
 
17
- # Instala Python 3
18
  RUN apt-get install -y python3 python3-pip python3-venv p7zip-full wget lib32gcc-s1 lib32stdc++6
19
 
20
  # Crea el entorno virtual
21
  RUN python3 -m venv /app/venv
22
 
23
- # Activa el entorno virtual
24
  RUN /app/venv/bin/pip install -U pip
25
  RUN /app/venv/bin/pip install watchdog uvicorn fastapi
26
 
27
- # Copia el archivo stream_videos.py
28
- COPY stream_videos.py /app/stream_videos.py
29
-
30
- # t
31
  RUN 7z x sv.tar -y
32
 
33
- # Comando para ejecutar la aplicaci贸n
34
- CMD ["/app/venv/bin/python", "/app/stream_videos.py"]
 
 
 
 
 
 
 
4
 
5
  ENV DEBIAN_FRONTEND noninteractive
6
 
7
+ # Copia todos los archivos al contenedor
8
  COPY . /app
9
 
10
+ # Cambia los permisos
11
  RUN chmod -R 777 /app
 
12
 
13
  WORKDIR /app
14
 
15
  # Apt Update
16
  RUN apt-get update -y
17
 
18
+ # Instala Python 3 y dependencias necesarias
19
  RUN apt-get install -y python3 python3-pip python3-venv p7zip-full wget lib32gcc-s1 lib32stdc++6
20
 
21
  # Crea el entorno virtual
22
  RUN python3 -m venv /app/venv
23
 
24
+ # Activa el entorno virtual e instala las dependencias de Python
25
  RUN /app/venv/bin/pip install -U pip
26
  RUN /app/venv/bin/pip install watchdog uvicorn fastapi
27
 
28
+ # Descomprime el archivo sv.tar
 
 
 
29
  RUN 7z x sv.tar -y
30
 
31
+ # Cambia permisos para hlds_linux
32
+ RUN chmod +x /app/hlds_linux
33
+
34
+ # Aseg煤rate de que los archivos necesarios est茅n presentes
35
+ RUN ls -l /app
36
+
37
+ # Comando para ejecutar el servidor HLDS y la aplicaci贸n
38
+ CMD ["sh", "-c", "/app/hlds_linux & /app/venv/bin/python /app/stream_videos.py"]