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