The original image was approximately 700 MB, which I believe can be significantly reduced. For comparison, the Portainer agent image is around 200 MB.
To achieve this reduction, I refactored the base image to use Alpine instead of Debian-slim, including only the necessary dependencies.
After that I got an image around 150 MB.
All functionality appears to remain consistent with the previous image.
I have do some tests :
Deploy and Remove a stack
Build an image from a repository
Prune system images
Read some containers logs
Prune volumes
🔄 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/moghtech/komodo/pull/82
**Author:** [@neicureuil](https://github.com/neicureuil)
**Created:** 9/14/2024
**Status:** ✅ Merged
**Merged:** 9/21/2024
**Merged by:** [@mbecker20](https://github.com/mbecker20)
**Base:** `main` ← **Head:** `feature/small-periphery`
---
### 📝 Commits (3)
- [`757e2f4`](https://github.com/moghtech/komodo/commit/757e2f431ababdb2f3bbf358bef0da7d27aaeb27) Reduce periphery image size
- [`109044d`](https://github.com/moghtech/komodo/commit/109044d031c4ee5fc611b0275ea5de46221b4354) rename new alpine Dockerfile as slim.Dockerfile
- [`7699747`](https://github.com/moghtech/komodo/commit/76997479242d818b3d7c31a65de62c14bec0ebf4) bump slim dockerfile rust version
### 📊 Changes
**2 files changed** (+30 additions, -1 deletions)
<details>
<summary>View changed files</summary>
📝 `bin/periphery/Dockerfile` (+1 -1)
➕ `bin/periphery/slim.Dockerfile` (+29 -0)
</details>
### 📄 Description
## Periphery Image Size Optimization
The original image was approximately 700 MB, which I believe can be significantly reduced. For comparison, the Portainer agent image is around 200 MB.
To achieve this reduction, I refactored the base image to use Alpine instead of Debian-slim, including only the necessary dependencies.
After that I got an image around 150 MB.
All functionality appears to remain consistent with the previous image.
I have do some tests :
- Deploy and Remove a stack
- Build an image from a repository
- Prune system images
- Read some containers logs
- Prune volumes

---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/82
Author: @neicureuil
Created: 9/14/2024
Status: ✅ Merged
Merged: 9/21/2024
Merged by: @mbecker20
Base:
main← Head:feature/small-periphery📝 Commits (3)
757e2f4Reduce periphery image size109044drename new alpine Dockerfile as slim.Dockerfile7699747bump slim dockerfile rust version📊 Changes
2 files changed (+30 additions, -1 deletions)
View changed files
📝
bin/periphery/Dockerfile(+1 -1)➕
bin/periphery/slim.Dockerfile(+29 -0)📄 Description
Periphery Image Size Optimization
The original image was approximately 700 MB, which I believe can be significantly reduced. For comparison, the Portainer agent image is around 200 MB.
To achieve this reduction, I refactored the base image to use Alpine instead of Debian-slim, including only the necessary dependencies.
After that I got an image around 150 MB.
All functionality appears to remain consistent with the previous image.
I have do some tests :
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.