# Use the ollama/ollama image from Docker Hub | |
FROM ollama/ollama | |
# Set the working directory | |
WORKDIR /root/.ollama | |
# RUN ollama pull llama2:7b-chat | |
EXPOSE 11434 | |
ENTRYPOINT ["ollama", "serve"] | |
# ENTRYPOINT ["ollama", "run", "llama2:7b-chat"] | |
# Use the ollama/ollama image from Docker Hub | |
FROM ollama/ollama | |
# Set the working directory | |
WORKDIR /root/.ollama | |
# RUN ollama pull llama2:7b-chat | |
EXPOSE 11434 | |
ENTRYPOINT ["ollama", "serve"] | |
# ENTRYPOINT ["ollama", "run", "llama2:7b-chat"] | |