tested
This commit is contained in:
1 parent
1d8894b7bc
commit
eb0fb3244e
1 file changed
+11
-3
+11
-3
@@ -1,20 +1,28 @@
|
||||
# Stage 1: Build Ollama with Vulkan support
|
||||
FROM ubuntu:24.04 AS builder
|
||||
FROM ubuntu:26.04 AS builder
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
RUN apt update && apt upgrade -y && apt install -y \
|
||||
build-essential \
|
||||
cmake \
|
||||
git \
|
||||
curl \
|
||||
wget \
|
||||
golang-go \
|
||||
libvulkan-dev \
|
||||
vulkan-tools \
|
||||
glslang-tools \
|
||||
ninja-build \
|
||||
spirv-headers \
|
||||
spirv-tools \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Directly install glslc via Debian arm64 package
|
||||
RUN wget http://ftp.debian.org/debian/pool/main/s/shaderc/glslc_2023.2-1_arm64.deb \
|
||||
&& apt-get update && apt-get install -y ./glslc_2023.2-1_arm64.deb \
|
||||
&& rm glslc_2023.2-1_arm64.deb && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /app
|
||||
RUN git clone --recursive https://github.com/ollama/ollama.git .
|
||||
|
||||
|
||||
Reference in new issue
Block a user