master
pan 4 years ago
parent 5ccb2abc99
commit e4f4fdac03
  1. 2
      Dockerfile
  2. 5
      shell/updateRisk

@ -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
#拷贝应用代码

@ -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

Loading…
Cancel
Save