阿里云源

#公网
sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories
#VPC内网
sed -i "s/dl-cdn.alpinelinux.org/mirrors.cloud.aliyuncs.com/g" /etc/apk/repositories

#版本号对应
echo http://mirrors.aliyun.com/alpine/v3.15/main/ > /etc/apk/repositories \
  && echo http://mirrors.aliyun.com/alpine/v3.15/community/ >> /etc/apk/repositories

其它源

#中科大 http://mirrors.ustc.edu.cn/help/alpine.html
sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories

#清华大学 https://mirror.tuna.tsinghua.edu.cn/help/alpine/
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories

#腾讯源 https://mirrors.cloud.tencent.com/alpine/
sed -i "s/dl-cdn.alpinelinux.org/mirrors.tencent.com/g" /etc/apk/repositories

更改时区

RUN apk --no-cache add tzdata \
   && cp "/usr/share/zoneinfo/Asia/Shanghai" /etc/localtime \
   && echo "Asia/Shanghai" > /etc/timezone