From 48920c873b621e2b8ba493dad4384256264c1039 Mon Sep 17 00:00:00 2001 From: Jeffrey Morgan Date: Fri, 30 Jun 2023 12:17:43 -0400 Subject: [PATCH] add basic `Dockerfile` --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index c90c2f31..d0ca2bb6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM ubuntu:22.04 -RUN apt-get update && apt-get install -y build-essential python3.11 python3-pip -RUN python3.11 -m pip install ollama +FROM python:3-slim-bullseye +RUN apt-get update && apt-get install -y build-essential gcc ninja-build libopenblas-dev +RUN python -m pip install --upgrade pip setuptools +RUN CMAKE_ARGS="-DLLAMA_OPENBLAS=on" FORCE_CMAKE=1 pip install ollama ENTRYPOINT ["ollama"] -