perf: 更新缓存规则

pull/8926/head
吴小白 2022-09-29 17:39:04 +08:00 committed by Jiangjie.Bai
parent d573ade525
commit 15363a7f72
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ ARG TOOLS=" \
unzip \ unzip \
wget" wget"
RUN --mount=type=cache,target=/var/cache/apt,sharing=private \ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=core \
sed -i 's@http://.*.debian.org@http://mirrors.ustc.edu.cn@g' /etc/apt/sources.list \ 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 \ && rm -f /etc/apt/apt.conf.d/docker-clean \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \

View File

@ -44,7 +44,7 @@ ARG TOOLS=" \
unzip \ unzip \
wget" wget"
RUN --mount=type=cache,target=/var/cache/apt,sharing=private \ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=core \
set -ex \ set -ex \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& apt-get update \ && apt-get update \