From d1c76bc10d7f8a5389fb744d90534a208470c866 Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Wed, 9 Sep 2026 18:19:44 -0700 Subject: [PATCH] f --- comfyui-rocm-dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/comfyui-rocm-dockerfile b/comfyui-rocm-dockerfile index 7d5456a..a8b0a81 100644 --- a/comfyui-rocm-dockerfile +++ b/comfyui-rocm-dockerfile @@ -18,10 +18,9 @@ RUN apt-get update && apt-get install -y \ WORKDIR /app RUN git clone --recursive https://github.com/ollama/ollama.git . -# Use Ollama's official preset configuration for Vulkan compilation -RUN cmake -S llama/server --preset vulkan -RUN cmake --build build/llama-server-vulkan --parallel $(nproc) -RUN cmake --install build/llama-server-vulkan --component llama-server --prefix /app/dist +# Correctly target Ollama's embedded llama.cpp path with Vulkan enabled +RUN cmake -S llm/llama.cpp -B build/vulkan -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release +RUN cmake --build build/vulkan --parallel $(nproc) # Build the main Go application binary RUN go build -o ollama . @@ -38,9 +37,8 @@ RUN apt-get update && apt-get install -y \ ca-certificates \ && rm -rf /var/lib/apt/lists/* -# Copy the compiled Go binary and the Vulkan backend runtime payload +# Copy the compiled Go binary COPY --from=builder /app/ollama /usr/local/bin/ollama -COPY --from=builder /app/dist /usr/local EXPOSE 11434 ENV OLLAMA_HOST=0.0.0.0:11434