From 91dc99f3902b1b7f8750710bebeb9a87ab65c20b Mon Sep 17 00:00:00 2001 From: xubiaolin Date: Mon, 15 May 2023 11:47:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0e454d7..40f8477 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,9 +15,8 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/re && cd /app/ztncui/src \ && cp /app/patch/binding.gyp .\ && echo "开始配置npm环境"\ - && npm config set registry https://registry.npmmirror.com\ - && npm install -g --progress --verbose node-gyp\ - && npm install \ + && npm install -g --progress --verbose node-gyp --registry=https://registry.npmmirror.com\ + && npm install --registry=https://registry.npmmirror.com\ && echo 'HTTP_PORT=3443' >.env \ && echo 'NODE_ENV=production' >>.env \ && echo 'HTTP_ALL_INTERFACES=true' >>.env \ @@ -25,7 +24,7 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/re && echo "${ZT_PORT}" >/app/zerotier-one.port \ && cp -v etc/default.passwd etc/passwd -RUN cd /app && git clone -v https://ghself.markxu.online/https://github.com/zerotier/ZeroTierOne.git --depth 1\ +RUN cd /app && git clone --progress https://ghself.markxu.online/https://github.com/zerotier/ZeroTierOne.git --depth 1\ && zerotier-one -d && sleep 5s && ps -ef |grep zerotier-one |grep -v grep |awk '{print $1}' |xargs kill -9 \ && cd /var/lib/zerotier-one && zerotier-idtool initmoon identity.public >moon.json\ && cd /app/patch && python3 patch.py \