feat(parse_regions): Add AWS regions parser && Dockerfile (#1537)

This commit is contained in:
Sergio Garcia
2022-12-13 19:00:43 +01:00
committed by GitHub
parent bb09267f2a
commit 388c0b2b9f
10 changed files with 5984 additions and 2 deletions

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM python:3.9-alpine
# Update system dependencies
RUN apk --no-cache update && apk --no-cache upgrade
# Install dependencies
ENV PATH="$HOME/.local/bin:$PATH"
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir prowler-cloud
# Create nonroot user
RUN mkdir -p /home/prowler && \
echo 'prowler:x:1000:1000:prowler:/home/prowler:' > /etc/passwd && \
echo 'prowler:x:1000:' > /etc/group && \
chown -R prowler:prowler /home/prowler
USER prowler
WORKDIR /home/prowler
ENTRYPOINT ["prowler"]