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
|
# Stage 1: Build Ollama with Vulkan support
|
||||||
FROM ubuntu:24.04 AS builder
|
FROM ubuntu:26.04 AS builder
|
||||||
|
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt update && apt upgrade -y && apt install -y \
|
||||||
build-essential \
|
build-essential \
|
||||||
cmake \
|
|
||||||
git \
|
git \
|
||||||
curl \
|
curl \
|
||||||
|
wget \
|
||||||
golang-go \
|
golang-go \
|
||||||
libvulkan-dev \
|
libvulkan-dev \
|
||||||
vulkan-tools \
|
vulkan-tools \
|
||||||
glslang-tools \
|
glslang-tools \
|
||||||
ninja-build \
|
ninja-build \
|
||||||
|
spirv-headers \
|
||||||
|
spirv-tools \
|
||||||
|
ca-certificates \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& 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
|
WORKDIR /app
|
||||||
RUN git clone --recursive https://github.com/ollama/ollama.git .
|
RUN git clone --recursive https://github.com/ollama/ollama.git .
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user