跟新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,7 +5,7 @@
下面的dockerFiles和 settings.xml放置到博客bolo-solo的下面执行下面命令编译并导出镜像 下面的dockerFiles和 settings.xml放置到博客bolo-solo的下面执行下面命令编译并导出镜像
```sh ```sh
docker build -t "zeek/bolo" . bash build_docker.sh
docker save -o /tmp/zeek_bolo.tar zeek/bolo docker save -o /tmp/zeek_bolo.tar zeek/bolo
``` ```

View File

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