[PR #4150] [MERGED] Reduce final docker image size #4179

Closed
opened 2026-04-25 00:18:40 +02:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/advplyr/audiobookshelf/pull/4150
Author: @pinjeff
Created: 3/23/2025
Status: Merged
Merged: 5/12/2025
Merged by: @advplyr

Base: masterHead: docker-build


📝 Commits (2)

  • fd0af6b Reduce final docker image size
  • 40e7e36 Dockerfile unnecessary stage 1 apks

📊 Changes

2 files changed (+20 additions, -11 deletions)

View changed files

📝 Dockerfile (+20 -11)
tailwind.config.js (+0 -0)

📄 Description

Brief summary

Reduces the final docker image size

Which issue is fixed?

no issue open

In-depth Description

this adds a third stage to the build, copying the required files only from the previous stages, this reduces the final image size from 600MB+ down to ~320MB

How have you tested this?

I tried the image after the build and it seems to be working, is there a test suite to run?


🔄 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/advplyr/audiobookshelf/pull/4150 **Author:** [@pinjeff](https://github.com/pinjeff) **Created:** 3/23/2025 **Status:** ✅ Merged **Merged:** 5/12/2025 **Merged by:** [@advplyr](https://github.com/advplyr) **Base:** `master` ← **Head:** `docker-build` --- ### 📝 Commits (2) - [`fd0af6b`](https://github.com/advplyr/audiobookshelf/commit/fd0af6b2dddce3f951f5a27da8e9568baaaeb59c) Reduce final docker image size - [`40e7e36`](https://github.com/advplyr/audiobookshelf/commit/40e7e36ef6bd87d51293fffe0513ea5e3dc4a3c9) Dockerfile unnecessary stage 1 apks ### 📊 Changes **2 files changed** (+20 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+20 -11) ➕ `tailwind.config.js` (+0 -0) </details> ### 📄 Description ## Brief summary Reduces the final docker image size ## Which issue is fixed? no issue open ## In-depth Description this adds a third stage to the build, copying the required files only from the previous stages, this reduces the final image size from 600MB+ down to ~320MB ## How have you tested this? I tried the image after the build and it seems to be working, is there a test suite to run? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-04-25 00:18:40 +02:00
adam closed this issue 2026-04-25 00:18:40 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#4179