JairoDanielMT commited on
Commit
693ef1a
1 Parent(s): d8300cf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -1,9 +1,9 @@
1
  # Etapa 1: Agregar componentes específicos de CUDA y utilidades básicas
2
  FROM nvidia/cuda:11.3.1-base-ubuntu20.04 AS base
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
- TZ=Europe/Paris
5
 
6
- # Instalar utilidades básicas
7
  RUN apt-get update && apt-get install -y \
8
  curl \
9
  git \
@@ -13,6 +13,9 @@ RUN apt-get update && apt-get install -y \
13
  git-lfs \
14
  ffmpeg
15
 
 
 
 
16
  # Crear el directorio /app en la etapa base
17
  WORKDIR /app
18
 
@@ -44,6 +47,5 @@ RUN chmod -R 777 /app
44
  RUN if [ ! -d "/.cache" ]; then mkdir /.cache; fi && chmod -R 777 /.cache
45
  RUN mkdir -p /.cache && chmod -R 777 /.cache
46
 
47
-
48
  # Definir comando predeterminado para iniciar la aplicación
49
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
  # Etapa 1: Agregar componentes específicos de CUDA y utilidades básicas
2
  FROM nvidia/cuda:11.3.1-base-ubuntu20.04 AS base
3
  ENV DEBIAN_FRONTEND=noninteractive \
4
+ TZ=Europe/Paris
5
 
6
+ # Instalar utilidades básicas y ffmpeg
7
  RUN apt-get update && apt-get install -y \
8
  curl \
9
  git \
 
13
  git-lfs \
14
  ffmpeg
15
 
16
+ # Agregar la ubicación de ffprobe al PATH
17
+ ENV PATH="${PATH}:/usr/bin"
18
+
19
  # Crear el directorio /app en la etapa base
20
  WORKDIR /app
21
 
 
47
  RUN if [ ! -d "/.cache" ]; then mkdir /.cache; fi && chmod -R 777 /.cache
48
  RUN mkdir -p /.cache && chmod -R 777 /.cache
49
 
 
50
  # Definir comando predeterminado para iniciar la aplicación
51
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]