cai-docker-plugin
v1.0.1
Published
docker镜像打包插件
Downloads
7
Readme
cai-docker-plugin
介绍
web前端通过命令行方式打包docker镜像的工具
安装教程
- npm i cai-docker-plugin
使用说明
- 项目根目录新增docker-config.json文件,以json形式配置上传的私服账号密码
- 在package.json中配置以下信息
host为docker服务器地址 registry为镜像前缀 path为需要打包的目录 3. 在项目的根目录创建Dockerfile文件 dockerfile文件内容根据docker规范和项目需求编写
- 配置命令行 将cai-docker-plugin 配置在package.json脚本中
cai-docker-plugin build 打包镜像 cai-docker-plugin push 推送镜像
参与贡献
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request