|
|
|
@ -2,7 +2,7 @@ FROM node:current-alpine3.12 |
|
|
|
|
|
|
|
|
|
#拷贝公钥免密克隆仓库代码 |
|
|
|
|
COPY .ssh /root/.ssh |
|
|
|
|
RUN chmod 400 /root/.ssh/id_rsa && md5sum /root/.ssh/* && ls -la /root/ && ls -la /root/.ssh/ |
|
|
|
|
RUN chmod 400 /root/.ssh/id_rsa |
|
|
|
|
RUN mkdir /app |
|
|
|
|
#拷贝自动更新部署应用的命令 |
|
|
|
|
COPY shell/* /app/ |
|
|
|
@ -13,6 +13,8 @@ WORKDIR /app |
|
|
|
|
#git web钩子服务端 |
|
|
|
|
RUN git clone git@gogs.kirito.cool:panqihua/RiskCloudRun.git |
|
|
|
|
WORKDIR /app/RiskCloudRun |
|
|
|
|
#安装依赖 |
|
|
|
|
RUN yarn |
|
|
|
|
|
|
|
|
|
CMD ["node","/bin/www"] |
|
|
|
|
|
|
|
|
|