Ver código fonte

chore: alpine 软件仓库镜像改用清华源

dzp 2 anos atrás
pai
commit
ec13e7a925
1 arquivos alterados com 4 adições e 0 exclusões
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

@@ -1,6 +1,8 @@
 # STAGE 1,在临时镜像中编译 tintin
 FROM alpine:3.18.3
 
+RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
+
 # 安装编译器和依赖包
 RUN    apk update \
     && apk add --no-cache git gcc libc-dev zlib-dev zlib-static pcre-dev make curl
@@ -33,6 +35,8 @@ ENV LANG=zh_CN.UTF8     \
 
 WORKDIR /paotin/
 
+RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
+
 RUN    apk update \
     && apk add --no-cache tmux bash ncurses less neovim nano lf