From f969c6bb695c2b28bb58236ce68a844eb7cff450 Mon Sep 17 00:00:00 2001 From: Eli Trop Date: Wed, 30 Dec 2020 10:37:41 +0200 Subject: [PATCH] using alpine --- Dockerfile | 10 +++++++--- entrypoint.sh | 8 +++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index a901cd8..d6f331d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,7 @@ -FROM checkmarx/kics:latest - -ENTRYPOINT ["/app/bin/kics","-p /github/workspace/$INPUT_DIRECTORY"] \ No newline at end of file +FROM alpine:latest + +COPY entrypoint.sh /entrypoint.sh + +RUN chmod +x /entrypoint.sh + +ENTRYPOINT ["/entrypoint.sh"] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index 3c2c28f..4cbcf4c 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,9 @@ #!/bin/sh -l -./app/bin/kics -p $INPUT_DIRECTORY \ No newline at end of file +curl "https://github.com/Checkmarx/kics/releases/latest/download/kics_1.0.0_linux_x64.tar.gz" -o kics.tar.gz + +tar -zxvf kics.tar.gz + +chmod +x kics + +./kics -p $INPUT_DIRECTORY \ No newline at end of file