-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
23 lines (19 loc) · 937 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.12-slim
# cloud-governance latest version
ARG VERSION
# install gitleaks
ARG gitleaks_version=7.0.2
RUN apt-get update \
&& apt-get install -y wget build-essential python3-dev libldap2-dev libsasl2-dev vim \
&& export VER=${gitleaks_version} \
&& wget https://github.com/zricethezav/gitleaks/releases/download/v$VER/gitleaks-linux-amd64 \
&& mv gitleaks-linux-amd64 gitleaks \
&& chmod +x gitleaks \
&& mv gitleaks /usr/local/bin/ \
&& gitleaks --version
# install & run cloud-governance (--no-cache-dir for take always the latest)
RUN python -m pip --no-cache-dir install --upgrade pip && pip --no-cache-dir install cloud-governance --upgrade
RUN pip3 --no-cache-dir install --upgrade awscli
ADD cloud_governance/policy /usr/local/cloud_governance/policy/
COPY cloud_governance/main/main.py /usr/local/cloud_governance/main.py
CMD [ "python", "/usr/local/cloud_governance/main.py"]