File size: 602 Bytes
05f67c9 02aee57 e316740 05f67c9 02aee57 cecf722 05f67c9 a3b1a57 22d3c29 02aee57 61f5d3f 02aee57 96c63f0 cecf722 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
FROM python:3.11-slim
RUN apt-get update && apt-get install -y curl ca-certificates && rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://ollama.com/install.sh | sh
WORKDIR /app
COPY requirements.txt .
COPY app.py .
COPY database.py .
COPY treinamento.py .
COPY config.py .
RUN pip install --no-cache-dir -r requirements.txt sentence-transformers
# GEMMA2:2B — MELHOR EM GÍRIAS E PERSONALIDADE!
RUN ollama serve & \
until curl -s http://localhost:11434/api/tags > /dev/null; do sleep 2; done && \
ollama pull gemma2:2b-instruct-q4_0 && \
kill $!
EXPOSE 7860
CMD ["python", "app.py"] |