multija commited on
Commit
7e3d211
·
verified ·
1 Parent(s): d4b913c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -11
Dockerfile CHANGED
@@ -1,29 +1,31 @@
1
- # Usando Python 3.10 slim
2
  FROM python:3.10-slim
3
 
4
- # Instalar dependências do sistema
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
  git \
7
  wget \
8
  ffmpeg \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Definir diretório de trabalho
12
  WORKDIR /app
13
 
14
- # Copiar arquivos
15
  COPY requirements.txt .
16
- COPY app.py .
17
 
18
- # Instalar dependências Python
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # Clonar F5-TTS
22
- RUN git clone https://github.com/SWivid/F5-TTS.git f5_tts_repo
23
- RUN pip install --no-cache-dir ./f5_tts_repo
24
 
25
- # Expor porta do FastAPI
26
  EXPOSE 8000
27
 
28
- # Comando para iniciar FastAPI
29
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
1
+ # Base image
2
  FROM python:3.10-slim
3
 
4
+ # Evita warnings de buffer e otimiza logs
5
+ ENV PYTHONUNBUFFERED=1
6
+
7
+ # Atualiza pacotes e instala dependências básicas
8
  RUN apt-get update && apt-get install -y \
9
  git \
10
  wget \
11
  ffmpeg \
12
+ build-essential \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
+ # Cria diretório da aplicação
16
  WORKDIR /app
17
 
18
+ # Copia requirements
19
  COPY requirements.txt .
 
20
 
21
+ # Instala dependências Python
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
+ # Copia app.py
25
+ COPY app.py .
 
26
 
27
+ # Expõe porta do FastAPI
28
  EXPOSE 8000
29
 
30
+ # Comando para rodar FastAPI
31
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]