From 592af2b5b555e825be1ffd09c74c4492d678aef1 Mon Sep 17 00:00:00 2001 From: Nimrod Kor Date: Sat, 16 Nov 2019 21:01:23 -0800 Subject: [PATCH] Make image smaller --- Dockerfile | 4 ++-- run.sh | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cc2ac80e0f..c7f5eb5987 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM python +FROM python:3.7-slim MAINTAINER Bridgecrew -RUN apt-get update && apt-get upgrade -y && apt-get install jq -y && pip install awscli detect-secrets boto3 +RUN apt-get update && apt-get upgrade -y && apt-get install jq curl -y && pip install awscli detect-secrets boto3 RUN curl -sL https://github.com/bridgecrewio/prowler/archive/feature/dockerized_prowler.tar.gz | tar xz diff --git a/run.sh b/run.sh index b0d8f699ae..ae134f5cd7 100755 --- a/run.sh +++ b/run.sh @@ -5,4 +5,6 @@ python3 credentials.py $ACCOUNT_ID echo "Running prowler on $ALIAS" ./prowler -c extra741 -M json > output.json +cat output.json + aws s3api put-object --bucket $BUCKET --key prowler/$ACCOUNT_ID/results \ No newline at end of file