From 6373460b5a6193eb7b38295fd03ccb5cb21bff84 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 1 Aug 2024 15:31:18 +0800 Subject: [PATCH 1/2] perf: change build cache --- Dockerfile-ee | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile-ee b/Dockerfile-ee index 4eea6d57..32f32df0 100644 --- a/Dockerfile-ee +++ b/Dockerfile-ee @@ -1,6 +1,6 @@ ARG VERSION -FROM registry.fit2cloud.com/jumpserver/koko:${VERSION}-ce +FROM jumpserver/koko:${VERSION}-ce ARG TARGETARCH ARG DEPENDENCIES=" \ @@ -18,7 +18,10 @@ ARG DEPENDENCIES=" \ wget \ xz-utils" +ARG APT_MIRROR=http://deb.debian.org + RUN set -ex \ + && sed -i "s/deb.debian.org/${APT_MIRROR}/g" /etc/apt/sources.list \ && apt-get update \ && apt-get install -y --no-install-recommends ${DEPENDENCIES} \ && apt-get clean From 9abe703adb61abdf844eddc1f7fc8c4383d603ef Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 1 Aug 2024 15:43:01 +0800 Subject: [PATCH 2/2] perf: change build cache --- Dockerfile-ee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile-ee b/Dockerfile-ee index 32f32df0..88c65df0 100644 --- a/Dockerfile-ee +++ b/Dockerfile-ee @@ -21,7 +21,7 @@ ARG DEPENDENCIES=" \ ARG APT_MIRROR=http://deb.debian.org RUN set -ex \ - && sed -i "s/deb.debian.org/${APT_MIRROR}/g" /etc/apt/sources.list \ + && sed -i "s@http://.*.debian.org@${APT_MIRROR}@g" /etc/apt/sources.list \ && apt-get update \ && apt-get install -y --no-install-recommends ${DEPENDENCIES} \ && apt-get clean