commit e5d337e5bd9b36e785845c26f7a950848170507d Author: Endial Fang Date: Wed Jul 22 09:08:07 2020 +0800 [feat]增加默认编译脚本文件Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..38506ab --- /dev/null +++ b/Makefile @@ -0,0 +1,15 @@ +# Ver: 1.0 by Endial Fang (endial@126.com) +# +# 当前 Docker 镜像的编译脚本 + +current_branch := $(shell git rev-parse --abbrev-ref HEAD) + +# Sources List: default / tencent / ustc / aliyun / huawei +build-arg := --build-arg apt_source=tencent + +# 设置本地下载服务器路径,加速调试时的本地编译速度 +build-arg += --build-arg local_url=http://192.168.48.132/dist-files/ + +build: + docker rmi alpine:$(current_branch) || true + docker build --force-rm $(build-arg) -t alpine:$(current_branch) .