Spaces:
Runtime error
Runtime error
File size: 641 Bytes
01b6eda c25811c 875dabb 4949f19 875dabb 01b6eda 04a5565 299a3e2 875dabb 299a3e2 03c893d 13819bc 875dabb e93905e 875dabb abf0042 299a3e2 875dabb 1d91306 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
FROM ollama/ollama:latest
# Instalar dependências necessárias
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Criar usuário não-root para melhor segurança
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
OLLAMA_HOST=0.0.0.0
WORKDIR $HOME/app
# Copiar o Modelfile
COPY --chown=user:user Modelfile ./
# Inicializar Ollama, baixar modelo e criar LlamaClaude
RUN ollama serve & \
sleep 15 && \
ollama pull llama3.1 && \
ollama create LlamaClaude -f ./Modelfile && \
ollama pull LlamaClaude && \
# Expor a porta do Ollama
EXPOSE 11434 |