From 757d0784a0929662bd7749a3076ecb03efc0ce55 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Wed, 9 Sep 2026 15:36:11 -0700 Subject: [PATCH] fix --- comfyui-rocm-dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/comfyui-rocm-dockerfile b/comfyui-rocm-dockerfile index 51ebff0..2111a79 100644 --- a/comfyui-rocm-dockerfile +++ b/comfyui-rocm-dockerfile @@ -1,4 +1,4 @@ -# Stage 1: Build Ollama with Vulkan support +# Stage 1: Build Ollama with Vulkan support for ARM64/AMD64 FROM ubuntu:24.04 AS builder ENV DEBIAN_FRONTEND=noninteractive @@ -11,16 +11,19 @@ RUN apt-get update && apt-get install -y \ golang-go \ libvulkan-dev \ vulkan-tools \ + glslang-tools \ && rm -rf /var/lib/apt/lists/* WORKDIR /app RUN git clone --recursive https://github.com/ollama/ollama.git . -# Configure CMake explicitly for Vulkan backend compilation +# Configure CMake with explicit Vulkan backend parameter RUN cmake -B build . -DOLLAMA_LLAMA_BACKENDS="vulkan" + +# Compile target with parallel jobs RUN cmake --build build --parallel $(nproc) -# Build the final Go binary +# Build the main Go executable RUN go build -o ollama . # Stage 2: Minimal Runtime Image @@ -35,7 +38,7 @@ RUN apt-get update && apt-get install -y \ ca-certificates \ && rm -rf /var/lib/apt/lists/* -# Copy the compiled binary and backend libraries from builder stage +# Copy binary and runtime libraries from builder COPY --from=builder /app/ollama /usr/local/bin/ollama COPY --from=builder /app/build/lib/ollama /usr/local/lib/ollama