userhugginggit commited on
Commit
8560b49
verified
1 Parent(s): fd09ecb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -8
Dockerfile CHANGED
@@ -2,13 +2,10 @@ FROM python:3.10-slim
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
5
- # Limitamos la cach茅 a 1 modelo cargado a la vez para no exceder los 16GB de RAM de HF
6
  ENV MODEL_CACHE_SIZE=1
7
- # Dejamos como predeterminados los de 0.6B (son los m谩s r谩pidos para CPU)
8
  ENV ACTIVE_MODELS="Qwen/Qwen3-TTS-12Hz-0.6B-Base,Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice"
9
  ENV HOME=/tmp
10
 
11
- # Instalamos ffmpeg, git y librer铆as de audio necesarias
12
  RUN apt-get update && apt-get install -y --no-install-recommends \
13
  git ffmpeg libsndfile1 sox build-essential \
14
  && rm -rf /var/lib/apt/lists/*
@@ -16,11 +13,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
16
  WORKDIR /app
17
  COPY . /app
18
 
19
- # Instalamos dependencias generales y el requirements.txt forzado a CPU
20
  RUN pip install --no-cache-dir --upgrade pip \
21
- && pip install --no-cache-dir -r requirements.txt \
22
- && pip install --no-cache-dir -e . || pip install --no-cache-dir "faster-qwen3-tts[demo]"
23
 
24
  EXPOSE 7860
25
- # EL CAMBIO EST脕 AQU脥: Se agreg贸 un espacio despu茅s de CMD y se cambi贸 python por python3
26
- CMD ["python3", "server.py", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
  ENV PYTHONUNBUFFERED=1
 
5
  ENV MODEL_CACHE_SIZE=1
 
6
  ENV ACTIVE_MODELS="Qwen/Qwen3-TTS-12Hz-0.6B-Base,Qwen/Qwen3-TTS-12Hz-0.6B-CustomVoice"
7
  ENV HOME=/tmp
8
 
 
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
10
  git ffmpeg libsndfile1 sox build-essential \
11
  && rm -rf /var/lib/apt/lists/*
 
13
  WORKDIR /app
14
  COPY . /app
15
 
16
+ # Instalamos usando el requirements
17
  RUN pip install --no-cache-dir --upgrade pip \
18
+ && pip install --no-cache-dir -r requirements.txt
 
19
 
20
  EXPOSE 7860
21
+ CMD["python3", "server.py", "--host", "0.0.0.0", "--port", "7860"]