mirror of
https://github.com/open-webui/pipelines.git
synced 2026-07-19 14:43:34 -04:00
[PR #279] [CLOSED] build: smaller container image #360
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/pipelines/pull/279
Author: @hegerdes
Created: 9/29/2024
Status: ❌ Closed
Base:
main← Head:smaller-container-image📝 Commits (1)
e75a97dbuild: smaller container image📊 Changes
2 files changed (+15 additions, -9 deletions)
View changed files
📝
.dockerignore(+4 -1)📝
Dockerfile(+11 -8)📄 Description
What changed
This PR uses multi-stage builds to reduce the container image size.
The container build file now copies all installed (and possibly compiled) dependencies to the final layer without keeping the build tools.
Not included in the final image are
Uncompressed size difference:
4.37GBvs3.79GB. A reduction of 600MB that dont have to be stored and transfered over the network anymore.Tests
Ich created a file based diff after each image layer and compared the changed files. All changed files that are needed are still copied over to the final image.
I stated the image build with and without the
USE_CUDA_DOCKER. The resulting image started with no problem🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.