From e4f4fdac03eac5bb3edaff8109a8725dabb79a14 Mon Sep 17 00:00:00 2001 From: pan <1029559041@qq.com> Date: Sat, 10 Oct 2020 01:16:52 +0800 Subject: [PATCH] init --- Dockerfile | 2 ++ shell/updateRisk | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) 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