From bbfd47da2ee7d1625fc51db3d373e713349c5d17 Mon Sep 17 00:00:00 2001 From: nikirby Date: Thu, 16 Dec 2021 09:16:29 -0500 Subject: [PATCH] Updated Dockerfile to use amazonlinux container --- util/Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/util/Dockerfile b/util/Dockerfile index 9467cd0c41..92ffa5a185 100644 --- a/util/Dockerfile +++ b/util/Dockerfile @@ -1,13 +1,14 @@ -FROM alpine:3.13 +FROM public.ecr.aws/amazonlinux/amazonlinux:latest ARG USERNAME=prowler 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 jq file coreutils py3-pip git && \ - pip3 install --upgrade pip && \ - pip3 install awscli boto3 detect-secrets==1.0.3 +RUN yum install -y shadow-utils && \ + useradd -s /bin/sh -U -u ${USERID} ${USERNAME} && \ + yum install -y python3 bash curl jq file coreutils py3-pip which && \ + yum clean all && \ + pip3 install --upgrade pip && \ + pip3 install awscli boto3 detect-secrets WORKDIR /prowler