From 0f2412893e3df894b261453b9ba5545e403ba5e0 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Fri, 26 Mar 2021 12:30:37 +0700 Subject: [PATCH] Updated makefile --- Makefile | 2 +- src/build.sh | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 1620032..6f6506b 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,6 @@ build: ./src/build.sh @echo "Size of the image: ${DOCKER_IMAGE_SIZE}" - $(shell docker push ${DOCKER_IMAGE_NAME}) + docker push ${DOCKER_IMAGE_NAME} .PHONY: build diff --git a/src/build.sh b/src/build.sh index a232270..4a4db61 100755 --- a/src/build.sh +++ b/src/build.sh @@ -56,9 +56,11 @@ docker build --build-arg BASE_IMAGE="${DOCKER_USERNAME}/${DOCKER_IMAGE_NAME}:${A ARG BASE_IMAGE FROM $BASE_IMAGE ARG MS_TOKEN -RUN wget https://get.aquasec.com/microscanner -O /home/cubetiq/microscanner \ - && echo "8e01415d364a4173c9917832c2e64485d93ac712a18611ed5099b75b6f44e3a5 /home/cubetiq/microscanner" | sha256sum -c - \ - && chmod +x /home/cubetiq/microscanner \ - && /home/cubetiq/microscanner $MS_TOKEN \ - && rm -r /home/cubetiq/microscanner + +# RUN wget https://get.aquasec.com/microscanner -O /home/cubetiq/microscanner \ +# && echo "8e01415d364a4173c9917832c2e64485d93ac712a18611ed5099b75b6f44e3a5 /home/cubetiq/microscanner" | sha256sum -c - \ +# && chmod +x /home/cubetiq/microscanner \ +# && /home/cubetiq/microscanner $MS_TOKEN \ +# && rm -r /home/cubetiq/microscanner + DOCKERFILE \ No newline at end of file