diff --git a/Dockerfile b/Dockerfile index 8a12df6..eda6cc0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ RUN chmod 400 /root/.ssh/id_rsa RUN mkdir /app #拷贝自动更新部署应用的命令 COPY shell/* /app/ +#为命令建立软链接 + #使用阿里云镜像源安装git和openssh RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update && apk add git openssh #拷贝应用代码 diff --git a/shell/updateRisk b/shell/updateRisk index 41406a8..41ac3b4 100644 --- a/shell/updateRisk +++ b/shell/updateRisk @@ -2,8 +2,6 @@ cd /app -export webclient='RiskCloudMock' -export webServer='RiskCloudFontend' export PORT=2233 export webClient=https://risk.kirito.cool @@ -20,6 +18,5 @@ function run(){ cd $1 && git reset --hard && git pull && yarn && chmod +x run.sh && killNode } -run $webclient -run $webServer +run $1