Spaces:
Paused
Paused
| FROM ubuntu:20.04 | |
| USER root | |
| ENV DEBIAN_FRONTEND noninteractive | |
| COPY . /app | |
| RUN chmod -R 777 /app | |
| RUN cd app | |
| WORKDIR /app | |
| # Apt Update | |
| RUN apt-get update -y | |
| # Instala Python 3 | |
| RUN apt-get install -y python3 python3-pip python3-venv p7zip-full wget lib32gcc-s1 | |
| # Crea el entorno virtual | |
| RUN python3 -m venv /app/venv | |
| # Activa el entorno virtual | |
| RUN /app/venv/bin/pip install -U pip | |
| RUN /app/venv/bin/pip install watchdog uvicorn fastapi | |
| # Copia el archivo stream_videos.py | |
| COPY stream_videos.py /app/stream_videos.py | |
| # t | |
| RUN 7z x sv.tar -y | |
| RUN chmod -R 777 /app | |
| RUN chmod -R 777 hlds_linux | |
| RUN ls && pwd | |
| RUN ./hlds_linux | |
| # Comando para ejecutar la aplicación | |
| CMD ["/app/venv/bin/python", "/app/stream_videos.py"] |