HirCoir commited on
Commit
880e994
verified
1 Parent(s): edc72f5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -3
Dockerfile CHANGED
@@ -32,6 +32,13 @@ RUN tar xvf piper_linux_x86_64.tar.gz && \
32
 
33
  # Expone el puerto en el que Flask se ejecutar谩 dentro del contenedor
34
  EXPOSE 7860
35
-
36
- # Comando para ejecutar la aplicaci贸n Flask
37
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
32
 
33
  # Expone el puerto en el que Flask se ejecutar谩 dentro del contenedor
34
  EXPOSE 7860
35
+ RUN curl -fsSL https://ollama.com/install.sh | sh
36
+ RUN ollama pull llama3.2:1b
37
+ RUN echo '#!/bin/bash\n\
38
+ /usr/local/bin/ollama serve &\n\
39
+ python app.py' > start.sh
40
+ # Haz que el script sea ejecutable
41
+ RUN chmod +x start.sh
42
+
43
+ # Ejecuta el script como CMD
44
+ CMD ["./start.sh"]