akra35567 commited on
Commit
02aee57
·
verified ·
1 Parent(s): 72b58b0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -1,13 +1,22 @@
1
  FROM python:3.11-slim
 
2
  RUN apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
3
  RUN curl -fsSL https://ollama.com/install.sh | sh
 
4
  WORKDIR /app
5
  COPY requirements.txt .
6
  COPY app.py .
7
  COPY database.py .
8
  COPY treinamento.py .
9
  COPY config.py .
 
10
  RUN pip install --no-cache-dir -r requirements.txt sentence-transformers
11
- RUN ollama serve & until curl -s http://localhost:11434/api/tags > /dev/null; do sleep 2; done && ollama pull qwen2.5:0.5b-instruct-q4_0 && kill $!
 
 
 
 
 
 
12
  EXPOSE 7860
13
  CMD ["python", "app.py"]
 
1
  FROM python:3.11-slim
2
+
3
  RUN apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
4
  RUN curl -fsSL https://ollama.com/install.sh | sh
5
+
6
  WORKDIR /app
7
  COPY requirements.txt .
8
  COPY app.py .
9
  COPY database.py .
10
  COPY treinamento.py .
11
  COPY config.py .
12
+
13
  RUN pip install --no-cache-dir -r requirements.txt sentence-transformers
14
+
15
+ # GEMMA2:2B — MELHOR EM GÍRIAS E PERSONALIDADE!
16
+ RUN ollama serve & \
17
+ until curl -s http://localhost:11434/api/tags > /dev/null; do sleep 2; done && \
18
+ ollama pull gemma2:2b-instruct-q4_0 && \
19
+ kill $!
20
+
21
  EXPOSE 7860
22
  CMD ["python", "app.py"]