Dockerfile

FROM openresty/openresty:1.21.4.3-alpine
FROM openresty/openresty:1.21.4.3-3-alpine
FROM openresty/openresty:1.25.3.1-4-alpine

ENV TZ=Asia/Shanghai

RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.tencent.com/g" /etc/apk/repositories && \
    apk --no-cache add tzdata && \
    echo "$" > /etc/timezone && \ 
    ln -sf /usr/share/zoneinfo/$ /etc/localtime

sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /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

build

docker build  -t rss.xxx.cn/openresty:1.21.4.3-alpine-cn   .  -f Dockerfile.1.21.4.3
docker build  -t rss.xxx.cn/openresty:1.21.4.3-3-alpine-cn   .  -f Dockerfile

docker build  -t rss.xxx.cn/openresty:1.25.3.1-2-alpine-cn   .  -f Dockerfile.1.25.3.1-2