[PR #597] [CLOSED] build slim, GPU-less docker image #41496

Closed
opened 2026-04-24 21:22:54 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/597
Author: @mxyng
Created: 9/25/2023
Status: Closed

Base: mainHead: mxyng/slim-docker-image


📝 Commits (2)

  • 863e5a5 start service on exit instead of immediately
  • 3cfe973 build slim, GPU-less docker image

📊 Changes

4 files changed (+47 additions, -9 deletions)

View changed files

Dockerfile.slim (+27 -0)
📝 llm/llama.cpp/generate_linux.go (+0 -8)
llm/llama.cpp/generate_linux_cuda.go (+17 -0)
📝 scripts/install.sh (+3 -1)

📄 Description

build a cpu-only docker image which is significantly smaller than the gpu image

ollama          cuda              dfdbcb88bc3d   4 minutes ago   754MB
ollama          slim              fb2e67c26718   7 minutes ago   148MB

Related #516


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/597 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 9/25/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `mxyng/slim-docker-image` --- ### 📝 Commits (2) - [`863e5a5`](https://github.com/ollama/ollama/commit/863e5a557e94e356a69e3624de827cd49477b302) start service on exit instead of immediately - [`3cfe973`](https://github.com/ollama/ollama/commit/3cfe97395c1af473d3a68e1b71764c538fe0fb5d) build slim, GPU-less docker image ### 📊 Changes **4 files changed** (+47 additions, -9 deletions) <details> <summary>View changed files</summary> ➕ `Dockerfile.slim` (+27 -0) 📝 `llm/llama.cpp/generate_linux.go` (+0 -8) ➕ `llm/llama.cpp/generate_linux_cuda.go` (+17 -0) 📝 `scripts/install.sh` (+3 -1) </details> ### 📄 Description build a cpu-only docker image which is significantly smaller than the gpu image ``` ollama cuda dfdbcb88bc3d 4 minutes ago 754MB ollama slim fb2e67c26718 7 minutes ago 148MB ``` Related #516 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-24 21:22:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#41496