akra35567 commited on
Commit
96c63f0
·
verified ·
1 Parent(s): aaad904

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -12
Dockerfile CHANGED
@@ -10,19 +10,11 @@ COPY database.py .
10
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- EXPOSE 7860
14
-
15
- # LOOP + MODELO LEVE
16
  RUN ollama serve & \
17
- until curl -s http://localhost:11434/api/tags > /dev/null; do \
18
- echo "Aguardando Ollama..." && sleep 2; \
19
- done && \
20
- echo "Ollama pronto! Puxando qwen2.5:0.5b-instruct-q4_0..." && \
21
- ollama pull qwen2.5:0.5b-instruct-q4_0 && \
22
  kill $!
23
 
24
- HEALTHCHECK --interval=30s CMD curl -f http://localhost:7860/health || exit 1
25
-
26
- ENV OLLAMA_NUM_PARALLEL=1
27
-
28
  CMD ["python", "app.py"]
 
10
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
+ # PUXA MODELO 1.5B
 
 
14
  RUN ollama serve & \
15
+ until curl -s http://localhost:11434/api/tags > /dev/null; do sleep 2; done && \
16
+ ollama pull qwen2.5:1.5b-instruct-q4_0 && \
 
 
 
17
  kill $!
18
 
19
+ EXPOSE 7860
 
 
 
20
  CMD ["python", "app.py"]