|
|
@ -1,9 +1,15 @@ |
|
|
|
FROM node:current-alpine3.12 |
|
|
|
FROM node:current-alpine3.12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#拷贝公钥免密克隆仓库代码 |
|
|
|
COPY .ssh /root/ |
|
|
|
COPY .ssh /root/ |
|
|
|
RUN mkdir /app |
|
|
|
RUN mkdir /app |
|
|
|
|
|
|
|
#拷贝自动更新部署应用的命令 |
|
|
|
COPY shell/* /app/ |
|
|
|
COPY shell/* /app/ |
|
|
|
|
|
|
|
#使用阿里云镜像源安装git |
|
|
|
|
|
|
|
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories && apk update && apk add git |
|
|
|
|
|
|
|
#拷贝应用代码 |
|
|
|
WORKDIR /app |
|
|
|
WORKDIR /app |
|
|
|
|
|
|
|
#git web钩子服务端 |
|
|
|
RUN git clone git@gogs.kirito.cool:panqihua/RiskCloudRun.git |
|
|
|
RUN git clone git@gogs.kirito.cool:panqihua/RiskCloudRun.git |
|
|
|
WORKDIR /app/RiskCloudRun |
|
|
|
WORKDIR /app/RiskCloudRun |
|
|
|
|
|
|
|
|
|
|
|