From 93d3a2568d6cb7ffde3913ec1fba312d313cb76a Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Fri, 22 Sep 2023 11:57:31 -0700 Subject: [PATCH] replace dockerfile --- Dockerfile | 21 ++++++++++++++------- Dockerfile.cuda | 31 ------------------------------- 2 files changed, 14 insertions(+), 38 deletions(-) delete mode 100644 Dockerfile.cuda diff --git a/Dockerfile b/Dockerfile index b5599dfe3..2895220fa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,28 @@ -FROM golang:alpine +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 apk add --no-cache git build-base cmake +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