carlex3321 commited on
Commit
1ec3602
·
verified ·
1 Parent(s): cc78e26

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -9
Dockerfile CHANGED
@@ -28,19 +28,19 @@ RUN useradd -m appuser && mkdir -p /app
28
  WORKDIR /app
29
  USER appuser
30
 
 
 
31
  # Copia arquivos necessários
32
- COPY requirements.txt /app/requirements.txt
33
- COPY app_vince.py /app/app_vince.py
34
- COPY builder.sh /app/builder.sh
35
- COPY start.sh /app/start.sh
36
- COPY info.sh /app/info.sh
37
  COPY . .
38
- # Se necessário para depuração
 
 
 
 
39
 
40
  # Instala dependências do requirements.txt
41
- RUN pip3 install --no-cache-dir -r /app/requirements.txt \
42
- && pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu122/ \
43
- && pip3 install --no-cache-dir huggingface-hub transformers gradio # Adicione se não estiver em requirements.txt
44
 
45
  # Executa builder.sh para compilações (ex: Apex, Q8) no buildtime
46
  RUN bash /app/builder.sh
 
28
  WORKDIR /app
29
  USER appuser
30
 
31
+ # ---------------- Dependências da aplicação ----------------
32
+
33
  # Copia arquivos necessários
 
 
 
 
 
34
  COPY . .
35
+
36
+ COPY requirements.txt ./requirements.txt
37
+ RUN pip install --no-cache-dir -r requirements.txt
38
+
39
+
40
 
41
  # Instala dependências do requirements.txt
42
+ #RUN pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu122/ \
43
+ # && pip3 install --no-cache-dir huggingface-hub transformers gradio # Adicione se não estiver em requirements.txt
 
44
 
45
  # Executa builder.sh para compilações (ex: Apex, Q8) no buildtime
46
  RUN bash /app/builder.sh