Download Dockerfile from akra35567/OLLAMA: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/spaces/akra35567/OLLAMA/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/akra35567/OLLAMA/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/akra35567/OLLAMA/resolve/main/Dockerfile
602 Bytes
| 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"] |