Updated makefile

This commit is contained in:
Sambo Chea 2021-03-26 12:30:37 +07:00
parent 44c49b10e2
commit 0f2412893e
2 changed files with 8 additions and 6 deletions

View File

@ -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

View File

@ -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