Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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 |
-
|
| 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"]
|