Add checkov package
This commit is contained in:
parent
471f2d0bb4
commit
f89f6e7157
10
Dockerfile
10
Dockerfile
@ -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; \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user