f
Docker Build and Release Upload / build-vulkan (push) Failing after 2m8s
Docker Build and Release Upload / build-uvicorn (push) Canceled after 0s
Docker Build and Release Upload / build-cuda (push) Canceled after 55s

This commit is contained in:
derek committed 2026-09-09 18:20:42 -07:00
1 parent d1c76bc10d
commit c08ca3bf7c
1 file changed
+5 -4
+5 -4
View File
@@ -18,9 +18,9 @@ RUN apt-get update && apt-get install -y \
WORKDIR /app WORKDIR /app
RUN git clone --recursive https://github.com/ollama/ollama.git . RUN git clone --recursive https://github.com/ollama/ollama.git .
# Correctly target Ollama's embedded llama.cpp path with Vulkan enabled # Configure and build using Ollama's native Vulkan backend flag
RUN cmake -S llm/llama.cpp -B build/vulkan -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release RUN cmake -B build . -DOLLAMA_LLAMA_BACKENDS="vulkan" -DCMAKE_BUILD_TYPE=Release
RUN cmake --build build/vulkan --parallel $(nproc) RUN cmake --build build --parallel $(nproc)
# Build the main Go application binary # Build the main Go application binary
RUN go build -o ollama . RUN go build -o ollama .
@@ -37,8 +37,9 @@ RUN apt-get update && apt-get install -y \
ca-certificates \ ca-certificates \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy the compiled Go binary # Copy the compiled Go binary and generated native backend libraries
COPY --from=builder /app/ollama /usr/local/bin/ollama COPY --from=builder /app/ollama /usr/local/bin/ollama
COPY --from=builder /app/build/lib/ollama /usr/local/lib/ollama
EXPOSE 11434 EXPOSE 11434
ENV OLLAMA_HOST=0.0.0.0:11434 ENV OLLAMA_HOST=0.0.0.0:11434