mirror of
https://github.com/vxcontrol/pentagi.git
synced 2026-07-21 08:15:23 -04:00
[PR #50] [MERGED] Remove the unnecessary cleanup step in the Dockerfile #136
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/vxcontrol/pentagi/pull/50
Author: @PeterDaveHello
Created: 8/4/2025
Status: ✅ Merged
Merged: 8/6/2025
Merged by: @asdek
Base:
master← Head:patch-1📝 Commits (1)
9d9a638Remove the unnecessary cleanup step in the Dockerfile📊 Changes
1 file changed (+1 additions, -2 deletions)
View changed files
📝
Dockerfile(+1 -2)📄 Description
Description of the Change
Remove the manual cleanup step
rm -rf /var/cache/apk/*in the Dockerfile’s final image stage. Sinceapk addalready uses--no-cache, there is no cache to clean up.Problem
The Dockerfile previously included a manual cleanup command (
rm -rf /var/cache/apk/*) after installing packages. However, since the--no-cacheflag is used withapk add, no cache files are created, making this cleanup step redundant.Solution
Remove the unnecessary
rm -rf /var/cache/apk/*command from the Dockerfile to simplify the build process and improve maintainability.Type of Change
Areas Affected
Testing and Verification
Test Configuration
Test Steps
/var/cache/apk/to confirm no cache files exist.Test Results
/var/cache/apk/is empty as expected.Security Considerations
This change only removes a redundant cleanup command. No new dependencies or permission changes are introduced. No security impact.
Performance Impact
No significant performance impact. Removing the unnecessary command slightly speeds up the build and improves Dockerfile readability.
Documentation Updates
Deployment Notes
No special deployment considerations. Build and deploy as usual with the updated Dockerfile.
Checklist
Code Quality
go fmtandgo vet(for Go code)npm run lint(for TypeScript/JavaScript code)Security
Compatibility
Documentation
Additional Notes
This PR is a minor optimization and cleanup for the Dockerfile. No functional changes. Safe to merge.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.