Spaces:
Running
Running
File size: 724 Bytes
6b64382 8e653ad 87dd5aa 8e653ad 87dd5aa 8ae62d3 87dd5aa 8e653ad 8e127fe 8e653ad 8da5752 87dd5aa d3d8cc5 eb8934b 8e653ad 9db385b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
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"] |