[PR #14074] feat: better image layers #40371

Open
opened 2026-04-23 01:16:48 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/14074
Author: @wOvAN
Created: 2/4/2026
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

  • 2893c6b feat: better image layers

📊 Changes

1 file changed (+33 additions, -21 deletions)

View changed files

📝 Dockerfile (+33 -21)

📄 Description

Optimized image layers.

My test builds from v0.15.1 to v0.15.3

- docker pull registry.dev.lan/ollama-test:v0.15.1
v0.15.1: Pulling from ollama-test
adac467eb2b3: Pull complete
70789101bbc0: Pull complete
5fb845fb8f12: Pull complete
92cc5fa60c9a: Pull complete
5f4b78494423: Pull complete
4bd0d99e9805: Pull complete
Digest: sha256:03930a6a2e261da82d6752d18f19a1ac4e263c9d214671b12221b0b47af9a053
Status: Downloaded newer image for registry.dev.lan/ollama-test:v0.15.1
registry.dev.lan/ollama-test:v0.15.1

- docker pull registry.dev.lan/ollama-test:v0.15.2
v0.15.2: Pulling from ollama-test
adac467eb2b3: Already exists
70789101bbc0: Already exists
5fb845fb8f12: Already exists
92cc5fa60c9a: Already exists
5f4b78494423: Already exists
0b2f48c70721: Pull complete
Digest: sha256:832ccb1c536b3826d0f7d2d69cd1fb3417d0ed289b90fddd46a8be567e86c10f
Status: Downloaded newer image for registry.dev.lan/ollama-test:v0.15.2
registry.dev.lan/ollama-test:v0.15.2

- docker pull registry.dev.lan/ollama-test:v0.15.3
v0.15.3: Pulling from ollama-test
adac467eb2b3: Already exists
70789101bbc0: Already exists
5fb845fb8f12: Already exists
92cc5fa60c9a: Already exists
5f4b78494423: Already exists
e7a583ed8d56: Pull complete
Digest: sha256:e1fe468245253b499937f37bd5cf7433a1787c45a30f7e3b6eb38f3f7ab91dfa
Status: Downloaded newer image for registry.dev.lan/ollama-test:v0.15.3
registry.dev.lan/ollama-test:v0.15.3

Better cache hit in general. I've tired to download GBs of data on each minor release. 👀


🔄 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/14074 **Author:** [@wOvAN](https://github.com/wOvAN) **Created:** 2/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`2893c6b`](https://github.com/ollama/ollama/commit/2893c6be26548e96020e1493d0e969d0829509ca) feat: better image layers ### 📊 Changes **1 file changed** (+33 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+33 -21) </details> ### 📄 Description Optimized image layers. My test builds from v0.15.1 to v0.15.3 ```shell - docker pull registry.dev.lan/ollama-test:v0.15.1 v0.15.1: Pulling from ollama-test adac467eb2b3: Pull complete 70789101bbc0: Pull complete 5fb845fb8f12: Pull complete 92cc5fa60c9a: Pull complete 5f4b78494423: Pull complete 4bd0d99e9805: Pull complete Digest: sha256:03930a6a2e261da82d6752d18f19a1ac4e263c9d214671b12221b0b47af9a053 Status: Downloaded newer image for registry.dev.lan/ollama-test:v0.15.1 registry.dev.lan/ollama-test:v0.15.1 - docker pull registry.dev.lan/ollama-test:v0.15.2 v0.15.2: Pulling from ollama-test adac467eb2b3: Already exists 70789101bbc0: Already exists 5fb845fb8f12: Already exists 92cc5fa60c9a: Already exists 5f4b78494423: Already exists 0b2f48c70721: Pull complete Digest: sha256:832ccb1c536b3826d0f7d2d69cd1fb3417d0ed289b90fddd46a8be567e86c10f Status: Downloaded newer image for registry.dev.lan/ollama-test:v0.15.2 registry.dev.lan/ollama-test:v0.15.2 - docker pull registry.dev.lan/ollama-test:v0.15.3 v0.15.3: Pulling from ollama-test adac467eb2b3: Already exists 70789101bbc0: Already exists 5fb845fb8f12: Already exists 92cc5fa60c9a: Already exists 5f4b78494423: Already exists e7a583ed8d56: Pull complete Digest: sha256:e1fe468245253b499937f37bd5cf7433a1787c45a30f7e3b6eb38f3f7ab91dfa Status: Downloaded newer image for registry.dev.lan/ollama-test:v0.15.3 registry.dev.lan/ollama-test:v0.15.3 ``` Better cache hit in general. I've tired to download GBs of data on each minor release. 👀 --- <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-23 01:16:48 -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#40371