From 8a1f55b48583c68df9c9fb8587b027cb24c3d1de Mon Sep 17 00:00:00 2001 From: Endial Fang Date: Fri, 2 Jul 2021 09:11:52 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E7=A6=81=E7=94=A8Docker=20Build=E6=97=B6?= =?UTF-8?q?=E7=9A=84'docker=20scan'=E4=BF=A1=E6=81=AF=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 55ec2d4..629da7b 100644 --- a/Makefile +++ b/Makefile @@ -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) .