feat: 添加 ARM64 架构的 Docker 镜像支持 (#282)

新增 Dockerfile.arm64 用于构建 ARM64 架构镜像,与现有 amd64 镜像互不影响。

主要变更:
- 新建 Dockerfile.arm64,使用 Chromium 替代 Google Chrome
- 移除 GOARCH 硬编码,支持多架构构建
- 更新 GitHub Actions 工作流,添加独立的 ARM64 构建步骤
- ARM64 镜像使用独立标签:version-arm64 和 latest-arm64

技术说明:
- Google Chrome 不支持 Linux ARM64
- go-rod 会自动从 Playwright CDN 下载 ARM64 版 Chromium
- 两个架构的镜像构建相互独立,失败风险隔离

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
zy
2025-11-05 23:27:40 +08:00
committed by GitHub
parent fb7c94e36c
commit 19471706ad
2 changed files with 103 additions and 1 deletions

View File

@@ -27,14 +27,28 @@ jobs:
username: xpzouying
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
- name: Build and push Docker image (AMD64)
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
platforms: linux/amd64
tags: |
xpzouying/xiaohongshu-mcp:${{ github.event.inputs.version }}
xpzouying/xiaohongshu-mcp:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push Docker image (ARM64)
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.arm64
push: true
platforms: linux/arm64
tags: |
xpzouying/xiaohongshu-mcp:${{ github.event.inputs.version }}-arm64
xpzouying/xiaohongshu-mcp:latest-arm64
cache-from: type=gha
cache-to: type=gha,mode=max