SorovotPelo commited on
Commit
eec527c
verified
1 Parent(s): 463cba5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +37 -0
Dockerfile ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:latest
2
+ USER root
3
+
4
+ ENV DEBIAN_FRONTEND=noninteractive
5
+
6
+ # Copia los archivos de la aplicaci贸n al directorio /app
7
+ COPY . /app
8
+
9
+ # Establece los permisos adecuados para todos los archivos en /app
10
+ RUN chmod -R 777 /app
11
+
12
+ # Establece /app como el directorio de trabajo
13
+ WORKDIR /app
14
+
15
+ # Actualiza los repositorios e instala dependencias necesarias
16
+ RUN apt-get update -y && apt-get install -y \
17
+ python3 \
18
+ python3-pip \
19
+ python3-venv \
20
+ p7zip-full \
21
+ wget \
22
+ lib32gcc-s1 \
23
+ lib32stdc++6 \
24
+ openjdk-21-jdk-headless
25
+
26
+ # Crea el entorno virtual para Python
27
+ RUN python3 -m venv /app/venv
28
+
29
+ # Actualiza pip e instala las dependencias de Python
30
+ RUN /app/venv/bin/pip install -U pip
31
+ RUN /app/venv/bin/pip install watchdog uvicorn fastapi
32
+
33
+ # Establece permisos para los archivos necesarios
34
+ RUN chmod -R 777 /app
35
+
36
+ # Comando para ejecutar la aplicaci贸n, que inicia el servidor CS 1.6, playit y FastAPI
37
+ CMD ["/app/venv/bin/python", "/app/stream_videos.py"]