mirror of
https://github.com/ghndrx/prowler.git
synced 2026-02-10 14:55:00 +00:00
Merge pull request #396 from ricoli/dockerfile-git-clone-cache-fix
replacing git clone with ADD as to not cache layer indefinetely
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user