跟新build_docker.sh的使用

This commit is contained in:
LingZhaoHui 2022-04-23 23:14:00 +08:00
parent 2875f37087
commit 17a5020391
2 changed files with 6 additions and 2 deletions

View File

@ -5,8 +5,8 @@
下面的dockerFiles和 settings.xml放置到博客bolo-solo的下面执行下面命令编译并导出镜像
```sh
docker build -t "zeek/bolo" .
bash build_docker.sh
docker save -o /tmp/zeek_bolo.tar zeek/bolo
```
- 将`/tmp/zeek_bolo.tar`上传到服务器`/tmp`目录下面,并且导入:

View File

@ -1,5 +1,9 @@
#!/bin/bash
#
# 优化docker编译只需要添加需要的文件
#
mkdir -p /tmp/bolo-solo
cp -rf ./Dockerfile ./gulpfile.js ./manifest.json ./package.json ./pom.xml src /tmp/bolo-solo