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

Closed
opened 2026-10-15 04:05:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: dev ← Head: seventhsite-patch-1


📝 Commits (1)

📊 Changes

1 file changed (+37 additions, -46 deletions)

View changed files

📝 client/server_scripts/xray/Dockerfile (+37 -46)

📄 Description

docker: optimize Xray 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
  • Extract only xray binary from zip instead of full archive
  • Add -fsSL flags to curl for reliability and clean output
  • Move ENV declaration above RUN instructions
  • Download zip to /tmp and clean up alongside apk cache and terminfo
  • 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/2323 **Author:** [@seventhsite](https://github.com/seventhsite) **Created:** 3/7/2026 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `seventhsite-patch-1` --- ### 📝 Commits (1) - [`f5158cb`](https://github.com/amnezia-vpn/amnezia-client/commit/f5158cbe5d47d9abe1cd4edbcafaa33be2ee835d) Update Dockerfile ### 📊 Changes **1 file changed** (+37 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `client/server_scripts/xray/Dockerfile` (+37 -46) </details> ### 📄 Description docker: optimize Xray 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 - Extract only xray binary from zip instead of full archive - Add -fsSL flags to curl for reliability and clean output - Move ENV declaration above RUN instructions - Download zip to /tmp and clean up alongside apk cache and terminfo - 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-15 04:05:06 +07: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#2766
No description provided.