Add checkov package

This commit is contained in:
Astound 2025-07-13 19:57:56 -05:00
parent 471f2d0bb4
commit f89f6e7157
Signed by: kaiser
GPG Key ID: 97504AF0027B1A56

View File

@ -43,6 +43,7 @@ RUN apt-get update -y && apt-get upgrade -y && apt-get install --no-install-reco
nodejs \ nodejs \
npm \ npm \
passwd \ passwd \
pipx \
python3 \ python3 \
python3-pip \ python3-pip \
python3-venv \ python3-venv \
@ -64,10 +65,11 @@ RUN apt-get update -y && apt-get upgrade -y && apt-get install --no-install-reco
# Docker # Docker
RUN curl -fsSL https://get.docker.com | sh && dockerd --version RUN curl -fsSL https://get.docker.com | sh && dockerd --version
# pre-commit # pre-commit and checkov
RUN pip3 install --break-system-packages --no-cache-dir pipx && \ RUN pipx install pre-commit && \
pipx install pre-commit && \ pipx install "checkov>=3.1.0,<3.3.0" && \
ln -s /root/.local/pipx/venvs/pre-commit/bin/pre-commit /usr/local/bin/pre-commit ln -s /root/.local/pipx/venvs/pre-commit/bin/pre-commit /usr/local/bin/pre-commit && \
ln -s /root/.local/pipx/venvs/checkov/bin/checkov /usr/local/bin/checkov
# AWS CLI (handle arch manually) # AWS CLI (handle arch manually)
RUN set -e; \ RUN set -e; \