巴林闲侠
2 years ago
5 changed files with 52 additions and 95 deletions
@ -1,14 +1,29 @@ |
|||||
|
|
||||
|
FROM FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12-dev as builder |
||||
|
COPY . /var/app |
||||
|
WORKDIR /var/app |
||||
|
EXPOSE 8080 |
||||
|
RUN npm config set registry=http://10.8.30.22:7000 |
||||
|
RUN echo "{\"time\":\"$BUILD_TIMESTAMP\",\"build\": \"$BUILD_NUMBER\",\"revision\": \"$SVN_REVISION_1\",\"URL\":\"$SVN_URL_1\"}" > version.json |
||||
|
RUN npm cache clean -f |
||||
|
RUN rm -rf package-lock.json |
||||
|
RUN npm install --registry http://10.8.30.22:7000 |
||||
|
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12 |
||||
|
COPY --from=builder --chown=node /var/app /home/node/app |
||||
|
WORKDIR /home/node/app |
||||
|
CMD ["node", "server.js"] |
||||
|
|
||||
# FROM node:8-alpine |
# FROM node:8-alpine |
||||
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
# FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
||||
|
|
||||
MAINTAINER liuxinyi "liu.xinyi@free-sun.com.cn" |
# MAINTAINER liuxinyi "liu.xinyi@free-sun.com.cn" |
||||
|
|
||||
COPY . /var/app |
# COPY . /var/app |
||||
|
|
||||
WORKDIR /var/app |
# WORKDIR /var/app |
||||
|
|
||||
EXPOSE 8080 |
# EXPOSE 8080 |
||||
|
|
||||
CMD ["-a", "http://10.8.30.35:19084", "-e", "iota-n1:9200,iota-n2:9200,iota-n3:9200,iota-n4:9200"] |
# CMD ["-a", "http://10.8.30.35:19084", "-e", "iota-n1:9200,iota-n2:9200,iota-n3:9200,iota-n4:9200"] |
||||
|
|
||||
ENTRYPOINT [ "node", "server.js" ] |
# ENTRYPOINT [ "node", "server.js" ] |
@ -1,76 +0,0 @@ |
|||||
[33m2adac9cb[m[33m ([m[1;36mHEAD -> [m[1;32mdev[m[33m)[m HEAD@{0}: reset: moving to HEAD^^^ |
|
||||
[33me5135673[m[33m ([m[1;31morigin/dev_backup[m[33m)[m HEAD@{1}: reset: moving to HEAD^^ |
|
||||
[33m020d4eda[m[33m ([m[1;31morigin/dev[m[33m)[m HEAD@{2}: reset: moving to HEAD |
|
||||
[33m020d4eda[m[33m ([m[1;31morigin/dev[m[33m)[m HEAD@{3}: reset: moving to HEAD |
|
||||
[33m020d4eda[m[33m ([m[1;31morigin/dev[m[33m)[m HEAD@{4}: commit: 12151 |
|
||||
[33md13b52a9[m HEAD@{5}: reset: moving to HEAD |
|
||||
[33md13b52a9[m HEAD@{6}: pull --tags origin dev: Fast-forward |
|
||||
[33m2d649d8e[m HEAD@{9}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m1a9dd433[m HEAD@{10}: commit: 清除log |
|
||||
[33ma9d12cd8[m HEAD@{11}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m8573588e[m HEAD@{12}: commit: 五分钟刷新 |
|
||||
[33m39b8e12b[m HEAD@{13}: pull --tags origin dev: Fast-forward |
|
||||
[33m6aba4d7a[m HEAD@{14}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m2e6dc29a[m HEAD@{15}: commit: 提交 |
|
||||
[33m283a16ae[m HEAD@{16}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m590ec5dd[m HEAD@{17}: commit: 提交 |
|
||||
[33m8eb418ae[m HEAD@{19}: commit: 日期去掉了日,加上了百分号 |
|
||||
[33mbf01c153[m HEAD@{20}: commit: 提交 |
|
||||
[33m76ad089b[m HEAD@{21}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m45f58fda[m HEAD@{22}: commit: 代码提交 |
|
||||
[33md9079d38[m HEAD@{23}: commit: 提交日期处理 |
|
||||
[33m8e0048ac[m HEAD@{24}: pull --tags origin dev: Fast-forward |
|
||||
[33mc1607d94[m HEAD@{25}: pull --tags origin dev: Fast-forward |
|
||||
[33m670dcf18[m HEAD@{26}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33mec02aeb9[m HEAD@{27}: commit: nan优化 |
|
||||
[33m974e3c67[m HEAD@{28}: commit: 换成定位了 |
|
||||
[33ma61dc4e9[m HEAD@{29}: pull --tags origin dev: Fast-forward |
|
||||
[33md77627f9[m HEAD@{30}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m01ef6b5a[m HEAD@{31}: commit: 柱体问题解决 |
|
||||
[33me9424d3e[m HEAD@{32}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33mc276432d[m HEAD@{33}: commit: 样式和颜色提交 |
|
||||
[33m45c415e6[m[33m ([m[1;31morigin/release_0.0.4[m[33m)[m HEAD@{34}: pull --tags origin dev: Fast-forward |
|
||||
[33m79723f61[m HEAD@{35}: commit: 线条 |
|
||||
[33m9c81764c[m HEAD@{36}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m3f398ea2[m HEAD@{37}: commit: 提交bug |
|
||||
[33m502b068d[m HEAD@{38}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m7a5b8b64[m HEAD@{39}: commit: 提交 |
|
||||
[33maeff1fe5[m HEAD@{40}: commit: 路由修改 |
|
||||
[33m11da9451[m HEAD@{41}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33med7ab5a8[m HEAD@{42}: commit: 完成 |
|
||||
[33m06063067[m HEAD@{43}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m755a333f[m HEAD@{44}: commit: 接口调用 |
|
||||
[33m2b153823[m HEAD@{45}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33mf0558530[m HEAD@{46}: commit: 路政统计 |
|
||||
[33m50eb042e[m HEAD@{47}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33ma1dfeddb[m HEAD@{48}: commit: 提交鼠标移出事件 |
|
||||
[33m5469d9df[m HEAD@{49}: commit (merge): Merge branch 'dev' of https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good into dev |
|
||||
[33m49a0b5d7[m HEAD@{50}: commit: 提交 |
|
||||
[33m11279671[m HEAD@{51}: commit: 提交领导驾驶舱 |
|
||||
[33m3919e2c3[m HEAD@{52}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33mb9302fdf[m HEAD@{53}: commit: 提交代码 |
|
||||
[33m79328f49[m HEAD@{54}: commit (merge): Merge branch 'dev' of https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good into dev |
|
||||
[33mc6a3b352[m HEAD@{55}: commit: 提交样式 |
|
||||
[33m14ed5747[m HEAD@{56}: pull --tags origin dev: Fast-forward |
|
||||
[33m80e11974[m HEAD@{57}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33ma561e62b[m HEAD@{58}: commit (merge): Merge branch 'dev' of https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good into dev |
|
||||
[33m163ce6c1[m HEAD@{59}: commit: 提交left.less的更改 |
|
||||
[33m4de26fc7[m HEAD@{60}: pull: Fast-forward |
|
||||
[33m4a1ae175[m HEAD@{61}: pull --tags origin dev: Fast-forward |
|
||||
[33me7a01d52[m HEAD@{62}: commit (merge): Merge branch 'dev' of https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good into dev |
|
||||
[33mc7e7cd4c[m HEAD@{63}: commit: 提交领导驾驶舱 |
|
||||
[33mfc3f2a92[m HEAD@{64}: commit (merge): Merge branch 'dev' of https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good into dev |
|
||||
[33mf166aa29[m HEAD@{65}: commit: 领导驾驶舱提交代码 |
|
||||
[33me6030bcf[m HEAD@{66}: commit: 上传 |
|
||||
[33mb299cd97[m HEAD@{67}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m69e7f3b6[m HEAD@{68}: commit: 删除冗余,提交 |
|
||||
[33ma74afb8f[m HEAD@{69}: commit: 文件 |
|
||||
[33m68c13e99[m HEAD@{70}: commit: 文件上传 |
|
||||
[33mdacf49b4[m HEAD@{71}: commit: 文件上传 |
|
||||
[33m1190cc0d[m HEAD@{72}: commit (merge): Merge branch 'dev' of https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good into dev |
|
||||
[33m0c57a227[m HEAD@{73}: commit: 头部样式完成 |
|
||||
[33m8ab4f5f2[m HEAD@{74}: pull --tags origin dev: Merge made by the 'ort' strategy. |
|
||||
[33m50714cbf[m HEAD@{75}: commit: 公共组件图标样式修改 |
|
||||
[33m34413ac0[m HEAD@{76}: commit: test |
|
||||
[33meee5aedf[m HEAD@{77}: commit: test |
|
||||
[33mcbdfefa3[m[33m ([m[1;32mmaster[m[33m)[m HEAD@{79}: clone: from https://gitea.anxinyun.cn/gao.zhiyuan/Highways4Good.git |
|
@ -1,12 +1,30 @@ |
|||||
|
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node:12-dev as builder |
||||
|
COPY . /var/app |
||||
|
WORKDIR /var/app |
||||
|
EXPOSE 8080 |
||||
|
RUN npm config set registry=http://10.8.30.22:7000 |
||||
|
RUN echo "{\"time\":\"$BUILD_TIMESTAMP\",\"build\": \"$BUILD_NUMBER\",\"revision\": \"$SVN_REVISION_1\",\"URL\":\"$SVN_URL_1\"}" > version.json |
||||
|
RUN npm cache clean -f |
||||
|
RUN npm install --registry http://10.8.30.22:7000 |
||||
|
RUN npm run build |
||||
|
RUN rm -rf client/src |
||||
|
RUN rm -rf node_modules |
||||
|
RUN npm install --production --registry http://10.8.30.22:7000 |
||||
|
FROM registry.cn-hangzhou.aliyuncs.com/fs-devops/node-16:7.22-06-20 |
||||
|
COPY --from=builder --chown=node /var/app /home/node/app |
||||
|
WORKDIR /home/node/app |
||||
|
CMD ["node", "server.js"] |
||||
|
|
||||
|
|
||||
#FROM node:12-alpine |
#FROM node:12-alpine |
||||
FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
# FROM repository.anxinyun.cn/base-images/nodejs12:20.10.12.2 |
||||
|
|
||||
MAINTAINER liuxinyi "liu.xinyi@free-sun.com.cn" |
# MAINTAINER liuxinyi "liu.xinyi@free-sun.com.cn" |
||||
|
|
||||
COPY . /var/app |
# COPY . /var/app |
||||
|
|
||||
WORKDIR /var/app |
# WORKDIR /var/app |
||||
|
|
||||
EXPOSE 5000 |
# EXPOSE 5000 |
||||
|
|
||||
ENTRYPOINT [ "node", "server.js" ] |
# ENTRYPOINT [ "node", "server.js" ] |
Loading…
Reference in new issue