langchain4j/docker/ollama/llama2/Dockerfile

4 lines
159 B
Docker

FROM --platform=$BUILDPLATFORM ollama/ollama:latest
RUN /bin/sh -c "/bin/ollama serve & sleep 1 && ollama pull llama2"
ENTRYPOINT ["/bin/ollama"]
CMD ["serve"]