From cd59a26263447dc9822cd88bf66f8c6183ffe7d9 Mon Sep 17 00:00:00 2001 From: Endial Fang Date: Tue, 20 Jan 2026 10:22:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=85=8D=E7=BD=AE=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++---- {etc => customer/etc}/apt/sources/aliyun.sources | 0 {etc => customer/etc}/apt/sources/default.sources | 0 {etc => customer/etc}/apt/sources/ustc.sources | 0 4 files changed, 4 insertions(+), 4 deletions(-) rename {etc => customer/etc}/apt/sources/aliyun.sources (100%) rename {etc => customer/etc}/apt/sources/default.sources (100%) rename {etc => customer/etc}/apt/sources/ustc.sources (100%) diff --git a/Dockerfile b/Dockerfile index ef50ad5..bdfd634 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,12 +16,12 @@ # 该部分变量,在编译命令中通过 `--build-arg` 传入;如果未设置,则使用下面对应的默认值 ARG APP_NAME=debian -ARG APP_VER=12 +ARG APP_VER=13 ARG REGISTRY_URL="docker.io/" ARG APT_SOURCE=aliyun # 1. 生成镜像 ===================================================================== -FROM --platform=${TARGETPLATFORM:-linux/amd64} ${REGISTRY_URL}debian:${APP_VER}-slim +FROM ${REGISTRY_URL}debian:${APP_VER}-slim # 声明需要使用的全局可变参数(ARG声明的变量仅编译打包阶段有效) ARG APP_NAME @@ -41,7 +41,7 @@ LABEL org.opencontainers.image.title="${APP_NAME}" \ maintainer="Endial Fang " # 拷贝源仓库配置文件 -COPY etc /etc/ +COPY customer / # 拷贝默认的通用脚本文件 COPY .ci/common/debian / @@ -49,7 +49,7 @@ COPY .ci/common/debian / # 选择软件包源,安装常用软件包,配置locale和时区,并清理缓存 RUN set -eux; \ \ - # 选择软件包源,以加速后续软件包安装 + # 选择软件包源,以加速后续软件包安装 select_source ${APT_SOURCE}; \ \ # 使用 install_pkg 脚本安装软件包 diff --git a/etc/apt/sources/aliyun.sources b/customer/etc/apt/sources/aliyun.sources similarity index 100% rename from etc/apt/sources/aliyun.sources rename to customer/etc/apt/sources/aliyun.sources diff --git a/etc/apt/sources/default.sources b/customer/etc/apt/sources/default.sources similarity index 100% rename from etc/apt/sources/default.sources rename to customer/etc/apt/sources/default.sources diff --git a/etc/apt/sources/ustc.sources b/customer/etc/apt/sources/ustc.sources similarity index 100% rename from etc/apt/sources/ustc.sources rename to customer/etc/apt/sources/ustc.sources