multija commited on
Commit
4c131c6
·
verified ·
1 Parent(s): 528497d

Rename Dockerfile to dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +0 -13
  2. dockerfile +24 -0
Dockerfile DELETED
@@ -1,13 +0,0 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- # Dependências
6
- RUN apt-get update && apt-get install -y git ffmpeg && rm -rf /var/lib/apt/lists/*
7
-
8
- COPY requirements.txt .
9
- RUN pip install --no-cache-dir -r requirements.txt
10
-
11
- COPY . .
12
-
13
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use Python 3.10
2
+ FROM python:3.10-slim
3
+
4
+ # Diretório de trabalho
5
+ WORKDIR /app
6
+
7
+ # Instala dependências do sistema
8
+ RUN apt-get update && apt-get install -y \
9
+ git \
10
+ ffmpeg \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # Instala TTS via git (última versão estável)
14
+ RUN pip install --upgrade pip
15
+ RUN pip install git+https://github.com/coqui-ai/TTS.git
16
+
17
+ # Copia os arquivos do projeto
18
+ COPY . .
19
+
20
+ # Exponha a porta
21
+ EXPOSE 8000
22
+
23
+ # Comando padrão para rodar o app
24
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]