aducsdr commited on
Commit
02ba760
·
verified ·
1 Parent(s): 42f4c11

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -2
Dockerfile CHANGED
@@ -1,3 +1,5 @@
 
 
1
  # 1. COMEÇAR COM A BASE CORRETA: Uma imagem oficial da NVIDIA com CUDA 12.1.1 e as ferramentas de desenvolvimento (devel)
2
  FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
3
 
@@ -33,5 +35,21 @@ RUN conda env create -f environment.yml
33
  RUN conda run -n seedvr pip install "flash_attn==2.5.9.post1" --no-build-isolation
34
 
35
  # 7. DEFINIR O AMBIENTE CONDA COMO PADRÃO PARA O RESTO DO DOCKERFILE
36
- # Este SHELL garante que todos os comandos RUN, CMD, ENTRYPOINT subsequentes estarão "dentro" do ambiente.
37
- SHELL ["conda", "run", "-n", "se
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dockerfile (VERSÃO FINAL CORRIGIDA)
2
+
3
  # 1. COMEÇAR COM A BASE CORRETA: Uma imagem oficial da NVIDIA com CUDA 12.1.1 e as ferramentas de desenvolvimento (devel)
4
  FROM nvidia/cuda:12.1.1-devel-ubuntu22.04
5
 
 
35
  RUN conda run -n seedvr pip install "flash_attn==2.5.9.post1" --no-build-isolation
36
 
37
  # 7. DEFINIR O AMBIENTE CONDA COMO PADRÃO PARA O RESTO DO DOCKERFILE
38
+ # Esta é a linha corrigida, em formato JSON válido e completo.
39
+ SHELL ["conda", "run", "-n", "seedvr", "/bin/bash", "-c"]
40
+
41
+ # 8. PREPARAR O APLICATIVO
42
+ WORKDIR /app
43
+ RUN git clone https://github.com/bytedance-seed/SeedVR.git
44
+ WORKDIR /app/SeedVR
45
+
46
+ # 9. BAIXAR O MODELO DURANTE A CONSTRUÇÃO
47
+ # O comando huggingface-cli já está disponível no ambiente conda.
48
+ RUN huggingface-cli download ByteDance-Seed/SeedVR2-3B --local-dir ckpts --local-dir-use-symlinks False
49
+
50
+ # 10. COPIAR O CÓDIGO DO NOSSO APP
51
+ COPY app.py .
52
+
53
+ # 11. DEFINIR O COMANDO DE EXECUÇÃO
54
+ # O comando 'python' já será o do ambiente 'seedvr'.
55
+ CMD ["python", "app.py"]