From ff86755ae53ebf336868baf5d143c652de92edd1 Mon Sep 17 00:00:00 2001 From: Marcin Kozlowski Date: Sat, 11 Jan 2025 13:35:25 +0100 Subject: [PATCH] Update Dockerfile Signed-off-by: Marcin Kozlowski --- docker/docker/worker-cli/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/docker/worker-cli/Dockerfile b/docker/docker/worker-cli/Dockerfile index 9722d3d..1d2d464 100644 --- a/docker/docker/worker-cli/Dockerfile +++ b/docker/docker/worker-cli/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:bookworm-slim AS builder +FROM python:3.8-slim AS builder ARG DEBIAN_FRONTEND=noninteractive ENV SHELL=/bin/bash @@ -6,7 +6,7 @@ ENV PIPENV_IGNORE_VIRTUALENVS=1 ENV PIP_ROOT_USER_ACTION=ignore -RUN apt-get update && apt-get install -y ca-certificates curl tar libssl-dev git ssh rubygems python3-pip pipenv python3-venv unzip jq gcc build-essential +RUN apt-get update && apt-get install -y ca-certificates curl tar libssl-dev git ssh rubygems python3-pip pipenv unzip jq gcc build-essential # Install Go @@ -30,7 +30,7 @@ ENV PATH=$PATH:/usr/local/go/bin # Install Ruby and npm packages RUN gem install brakeman -RUN python3 -m venv path/to/venv && source venv/bin/activate && pip install pip && pip install bandit && pip install checkmate5 && pip install git+https://github.com/tcosolutions/aigraphcodescan +RUN pip install pip && pip install bandit && pip install checkmate5 && pip install git+https://github.com/tcosolutions/aigraphcodescan # Clone and install other repositories RUN git clone https://github.com/tcosolutions/betterscan.git /srv/betterscan @@ -40,3 +40,4 @@ RUN curl https://raw.githubusercontent.com/aquasecurity/tfsec/master/scripts/ins curl https://raw.githubusercontent.com/armosec/kubescape/master/install.sh | bash +