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 \