update build flag
Docker Build and Release Upload / build-vulkan (push) Successful in 14m53s
Docker Build and Release Upload / build-uvicorn (push) Canceled after 0s
Docker Build and Release Upload / build-cuda (push) Canceled after 9s

This commit is contained in:
derek committed 2026-09-09 19:47:09 -07:00
1 parent 882bdac0d0
commit ddf934d069
1 file changed
+2 -1
+2 -1
View File
@@ -30,7 +30,7 @@ WORKDIR /app
RUN git clone --recursive https://github.com/ollama/ollama.git .
# Configure and safely build with constrained parallelism to protect 96GB RAM
RUN cmake -B build . -DOLLAMA_LLAMA_BACKENDS="vulkan" -DCMAKE_BUILD_TYPE=Release
RUN cmake -B build . -DOLLAMA_LLAMA_BACKENDS="vulkan" -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release
RUN cmake --build build --parallel 16
# Build the main Go application binary
@@ -39,6 +39,7 @@ RUN go build -o ollama .
# Start the server
EXPOSE 11434
ENV OLLAMA_HOST=0.0.0.0:11434
ENV GGML_VULKAN_DISABLE_FMA=1
ENV OLLAMA_MODELS=/root/.ollama/models
ENTRYPOINT ["/app/ollama", "serve"]