[PR #2322] [CLOSED] Optimize Dockerfiles: reduce image size and layer count across all services #2764

Closed
opened 2026-10-14 21:05:05 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amnezia-vpn/amnezia-client/pull/2322
Author: @seventhsite
Created: 3/7/2026
Status: ❌ Closed

Base: dev ← Head: Decrease-image-size


📝 Commits (1)

📊 Changes

1 file changed (+32 additions, -42 deletions)

View changed files

📝 client/server_scripts/awg/Dockerfile (+32 -42)

📄 Description

docker: optimize Dockerfile to reduce image size and layer count

  • Merge all RUN instructions into a single layer
  • Replace echo -e with printf and heredocs for portability
  • Add --update flag to apk to avoid separate upgrade step
  • Clean up apk cache, temp dirs and terminfo after install
  • Remove redundant CMD [""] and unnecessary tee/sed usage

🔄 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/amnezia-vpn/amnezia-client/pull/2322 **Author:** [@seventhsite](https://github.com/seventhsite) **Created:** 3/7/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `Decrease-image-size` --- ### 📝 Commits (1) - [`8c15791`](https://github.com/amnezia-vpn/amnezia-client/commit/8c15791013b7354df53a1e42804195c557fea6ef) Update Dockerfile ### 📊 Changes **1 file changed** (+32 additions, -42 deletions) <details> <summary>View changed files</summary> 📝 `client/server_scripts/awg/Dockerfile` (+32 -42) </details> ### 📄 Description docker: optimize Dockerfile to reduce image size and layer count - Merge all RUN instructions into a single layer - Replace echo -e with printf and heredocs for portability - Add --update flag to apk to avoid separate upgrade step - Clean up apk cache, temp dirs and terminfo after install - Remove redundant CMD [""] and unnecessary tee/sed usage --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-14 21:05:05 +00:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#2764
No description provided.