MarcosFRGames commited on
Commit
13c6a1a
verified
1 Parent(s): 2c916b2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -14
Dockerfile CHANGED
@@ -1,29 +1,20 @@
1
- FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Instalar dependencias del sistema necesarias para llama-cpp-python
6
  RUN apt-get update && \
7
  apt-get install -y --no-install-recommends \
8
- build-essential \
9
- curl \
10
  && apt-get clean \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Copiar requirements primero (para mejor cache de Docker)
14
  COPY requirements.txt .
15
-
16
- # Copiar modelos
17
- COPY engines.json /app/engines.json
18
-
19
- # Instalar dependencias de Python
20
  RUN pip install --no-cache-dir -r requirements.txt
21
 
22
- # Copiar aplicaci贸n
23
- COPY app.py .
24
 
25
- # Exponer puerto
26
  EXPOSE 7860
27
 
28
- # Comando de inicio
29
  CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "120", "app:app"]
 
1
+ FROM pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
2
 
3
  WORKDIR /app
4
 
5
+ # Instalar dependencias del sistema para audio
6
  RUN apt-get update && \
7
  apt-get install -y --no-install-recommends \
8
+ libsndfile1 \
9
+ ffmpeg \
10
  && apt-get clean \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
13
  COPY requirements.txt .
 
 
 
 
 
14
  RUN pip install --no-cache-dir -r requirements.txt
15
 
16
+ COPY . .
 
17
 
 
18
  EXPOSE 7860
19
 
 
20
  CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--timeout", "120", "app:app"]