From 1d1af1bebf468dd55fa3d177fceeb7339f6f36cc Mon Sep 17 00:00:00 2001 From: fly6516 Date: Wed, 5 Mar 2025 23:58:12 +0800 Subject: [PATCH] docs update README.md --- README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 40a88f0..d581e71 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,24 @@ Once inside the container, you can use the pre-installed compilers and tools to ### 使用方法 进入容器后,所有的编译器与工具已经预先安装好,工作目录为 `/workspace`,可以直接在此目录下进行项目的开发和编译。 + +### 编译 + +#### 创建并启用 Buildx 构建器 +```bash +docker buildx create --use +``` + +#### 启动 QEMU 支持的多架构模拟器 +```bash +docker run --rm --privileged fly6516.synology.me:8080/multiarch/qemu-user-static --reset -p yes +``` + +#### 构建并推送多架构 Docker 镜像 +```bash +docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le,linux/s390x,linux/mips64le -t fly6516/multilang:latest . --push +``` + --- [English Version](#english-version) -``` \ No newline at end of file