From 17a703369317e9c7ba4d025efee637bd9e3859c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=B5=E6=9B=A6?= Date: Fri, 16 Jan 2026 01:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ac0c1a0..bd3b6c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ RUN echo ${TARGETPLATFORM//\//-} > /platform_id # 根据TARGETPLATFORM自动选择对应的builder阶段 ARG TARGETPLATFORM -FROM base-${TARGETPLATFORM/linux\//linux-} AS builder +FROM base-${TARGETPLATFORM//\//-} AS builder # 安装构建依赖(根据基础镜像类型区分) RUN if [ -f /etc/alpine-release ]; then \ @@ -70,7 +70,7 @@ COPY xiaomusic.py . # -------------------------- 运行阶段 -------------------------- # 根据TARGETPLATFORM自动选择对应的runner阶段 ARG TARGETPLATFORM -FROM run-${TARGETPLATFORM/linux\//linux-} AS runner +FROM run-${TARGETPLATFORM//\//-} AS runner # 安装运行时依赖(区分Alpine和Debian) RUN if [ -f /etc/alpine-release ]; then \