[PR #271] [MERGED] chore: dockerfile improvements #414

Closed
opened 2026-02-16 01:15:53 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/271
Author: @bowenliang123
Created: 5/8/2025
Status: Merged
Merged: 5/9/2025
Merged by: @Yeuoly

Base: mainHead: improve-dockerfile


📝 Commits (1)

📊 Changes

2 files changed (+6 additions, -7 deletions)

View changed files

📝 docker/local.dockerfile (+3 -4)
📝 docker/serverless.dockerfile (+3 -3)

📄 Description

  • dockerfile improvements
    • correct FROM ... as to FROM ... AS for setting base image, eliminating the warning message in docker image build WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)
    • move the copying action of main to latter steps , to reuse the previous built layer as many as possible especially for repeated builds and also help to extraction layer compressions earlier for image pulling
    • squeeze the file copying into single command to reduce image layers

🔄 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/langgenius/dify-plugin-daemon/pull/271 **Author:** [@bowenliang123](https://github.com/bowenliang123) **Created:** 5/8/2025 **Status:** ✅ Merged **Merged:** 5/9/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `improve-dockerfile` --- ### 📝 Commits (1) - [`4ae9f20`](https://github.com/langgenius/dify-plugin-daemon/commit/4ae9f20ec8867c979ffa4e26ad6477e1d733fc74) update ### 📊 Changes **2 files changed** (+6 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docker/local.dockerfile` (+3 -4) 📝 `docker/serverless.dockerfile` (+3 -3) </details> ### 📄 Description - dockerfile improvements - correct `FROM ... as` to `FROM ... AS` for setting base image, eliminating the warning message in docker image build `WARN: FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 1)` - move the copying action of `main` to latter steps , to reuse the previous built layer as many as possible especially for repeated builds and also help to extraction layer compressions earlier for image pulling - squeeze the file copying into single command to reduce image layers --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:53 -05:00
yindo closed this issue 2026-02-16 01:15:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#414