ARG CUDA_VERSION=12.2.0 FROM nvidia/cuda:$CUDA_VERSION-devel-ubuntu22.04 ARG TARGETARCH ARG VERSION=0.0.0 WORKDIR /go/src/github.com/jmorganca/ollama RUN apt-get update && apt-get install -y git build-essential cmake ADD https://dl.google.com/go/go1.21.1.linux-$TARGETARCH.tar.gz /tmp/go1.21.1.tar.gz RUN mkdir -p /usr/local && tar xz -C /usr/local