From 2c9aff09e2431045ab951f8fff442b18bd06fa89 Mon Sep 17 00:00:00 2001 From: fly6516 Date: Wed, 1 Jan 2025 08:58:45 +0800 Subject: [PATCH] =?UTF-8?q?docs=EF=BC=9Aadd=20compile=20guide?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- README.md | 19 ++++++++++++++++++- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index de92d70..bbedb47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ ENV DEBIAN_FRONTEND=noninteractive # && rm -rf /var/lib/apt/lists/* # 使用南京大学的 apt 源 -# RUN sed -i 's/archive.ubuntu.com/mirrors.nju.edu.cn/g' /etc/apt/sources.list +RUN sed -i 's/archive.ubuntu.com/mirrors.nju.edu.cn/g' /etc/apt/sources.list # 更新系统并安装常用工具 RUN apt-get update && apt-get install -y \ diff --git a/README.md b/README.md index d0e7055..05ae780 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,20 @@ # Multi-Lang -multi-lang-dev \ No newline at end of file +multi-lang-dev + +# 编译 + +# 创建并启用 Buildx 构建器 +docker buildx create --use + +# 启动 QEMU 支持的多架构模拟器 +docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + +# 构建并推送多架构 Docker 镜像 +# 创建并启用 Buildx 构建器 +docker buildx create --use + +# 启动 QEMU 支持的多架构模拟器 +docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + +# 构建并推送多架构 Docker 镜像 \ No newline at end of file