From 3da2e5bd623948cb844ed313b5c55beb86e9d8dc Mon Sep 17 00:00:00 2001 From: xubiaolin Date: Mon, 22 Aug 2022 10:43:23 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20xxxxxxx?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/Dockerfile b/Dockerfile index da392fe..f1eed13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,29 +4,14 @@ ENV TZ=Asia/Shanghai \ ADD . /app -RUN echo "deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse\n \ - deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse\n\ - deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse\n\ - deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multivers\ne\ - deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse\n\ - deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse\n\ - deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse\n\ - deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse\n\ - deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse\n\ - deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse\n" >/etc/apt/sources.list \ - && apt update \ - && apt install -y tzdata \ - && ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \ - && echo ${TZ} >/etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata \ - && apt-get clean \ - && rm -rf /var/lib/apt/lists/* \ - && apt update \ - && apt install git python3 npm make curl wget -y \ - && mkdir /usr/include/nlohmann/ \ - && cd /usr/include/nlohmann/ \ - && wget https://github.com/nlohmann/json/releases/download/v3.10.5/json.hpp \ - && npm config set registry http://registry.npm.taobao.org \ - && npm install -g node-gyp +RUN sed -i "s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list& \ + && sed -i "s@http://.*security.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \ + && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' > /etc/timezone\ + && apt update && apt install git python3 npm make curl wget -y \ + && mkdir /usr/include/nlohmann/ && cd /usr/include/nlohmann/ && wget https://github.com/nlohmann/json/releases/download/v3.10.5/json.hpp \ + && npm config set registry http://registry.npm.taobao.org && npm install -g node-gyp \ + && apt-get clean && rm -rf /var/lib/apt/lists/* + RUN curl -s https://install.zerotier.com | bash \ && cd /opt && git clone -v http://gh-proxy.markxu.vip/https://github.com/key-networks/ztncui.git --depth 1 \