[feat]禁用Docker Build时的'docker scan'信息输出
This commit is contained in:
@@ -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) .
|
||||
|
||||
Reference in New Issue
Block a user