Qwen2-VL-2B / Dockerfile
lucianotonet's picture
Atualiza Dockerfile para simplificar configuração e início
299a3e2
raw
history blame
427 Bytes
FROM ollama/ollama:latest
RUN apt-get update && apt-get install curl -y
# https://huggingface.co/docs/hub/spaces-sdks-docker-first-demo
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
COPY --chown=user:user Modelfile $HOME/app/
# Cria um script de inicialização
RUN ollama serve & sleep 10 && ollama pull llama3.1
EXPOSE 11434