Browse Source

fix: 修复使用缓存构建

pull/8926/head
吴小白 2 years ago committed by Jiangjie.Bai
parent
commit
d573ade525
  1. 2
      Dockerfile
  2. 2
      Dockerfile.loong64

2
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 \

2
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 \

Loading…
Cancel
Save