[feat]禁用Docker Build时的'docker scan'信息输出

This commit is contained in:
2021-07-02 09:11:52 +08:00
parent 87c4e29d72
commit 8a1f55b485
+4 -1
View File
@@ -1,4 +1,4 @@
# Ver: 1.9 by Endial Fang (endial@126.com)
# Ver: 1.10 by Endial Fang (endial@126.com)
#
# 当前 Docker 镜像的编译脚本
@@ -27,6 +27,9 @@ build-arg+=--build-arg local_url=http://$(local_ip)/dist-files
.PHONY: build clean clearclean upgrade
# 屏蔽 "Use 'docker scan' to run Snyk tests against images to find vulnerabilities and learn how to fix them"
export DOCKER_SCAN_SUGGEST=false
build:
@echo "Build $(image_name):$(image_tag)"
@docker build --force-rm $(build-arg) -t $(image_name):$(image_tag) .