diff --git a/Dockerfile b/Dockerfile index b10cec761..019383a1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ ARG TOOLS=" \ unzip \ wget" -RUN --mount=type=cache,target=/var/cache/apt \ +RUN --mount=type=cache,target=/var/cache/apt,sharing=private \ sed -i 's@http://.*.debian.org@http://mirrors.ustc.edu.cn@g' /etc/apt/sources.list \ && rm -f /etc/apt/apt.conf.d/docker-clean \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ diff --git a/Dockerfile.loong64 b/Dockerfile.loong64 index e8f64bc95..308b6b658 100644 --- a/Dockerfile.loong64 +++ b/Dockerfile.loong64 @@ -44,7 +44,7 @@ ARG TOOLS=" \ unzip \ wget" -RUN --mount=type=cache,target=/var/cache/apt \ +RUN --mount=type=cache,target=/var/cache/apt,sharing=private \ set -ex \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && apt-get update \