From 826cc00a7ca9c39a61a9a4f34d868c9297c2c0d6 Mon Sep 17 00:00:00 2001 From: Ricardo Oliveira Date: Tue, 15 Oct 2019 10:43:58 +0100 Subject: [PATCH] replacing git clone with ADD as to not cache layer indefinetely --- util/Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/util/Dockerfile b/util/Dockerfile index 116bc1f4..ae0cb0cc 100644 --- a/util/Dockerfile +++ b/util/Dockerfile @@ -5,11 +5,13 @@ ARG USERID=34000 RUN addgroup -g ${USERID} ${USERNAME} && \ adduser -s /bin/sh -G ${USERNAME} -D -u ${USERID} ${USERNAME} && \ - apk --update --no-cache add python3 bash curl git jq file && \ + apk --update --no-cache add python3 bash curl jq file && \ pip3 install --upgrade pip && \ - pip install awscli ansi2html boto3 detect-secrets &&\ - git clone https://github.com/toniblyx/prowler/ &&\ - chown -R prowler /prowler/ + pip install awscli ansi2html boto3 detect-secrets + +ADD . /prowler + +RUN chown -R prowler /prowler/ USER ${USERNAME}