feat: 指定交叉编译的镜像架构,达到构建提速目的 #75
Reference in New Issue
Block a user
Delete Branch "main"
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?
换了个思路,实测即可达到加速目的,还不影响Dockerfile完整。
Summary by CodeRabbit
Walkthrough
The Dockerfile’s builder stage now specifies an explicit build platform: linux/amd64. All other instructions remain unchanged.
Changes
DockerfileFROM --platform=linux/amd64 golang:1.25-alpine AS builder; no other steps modified.Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
Pre-merge checks and finishing touches
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands and usage tips.Actionable comments posted: 0
🧹 Nitpick comments (2)
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between
3f614e8011and234ddcf835.📒 Files selected for processing (1)
Dockerfile(2 hunks)🔇 Additional comments (2)
emm,感谢PR,不过我觉得不用优化到太极致,并且这个改动可能会对其他架构执行
docker build时造成一些潜在的影响ok
Pull request closed