diff --git a/security_docker_arm/Dockerfile b/security_docker_arm/Dockerfile index f950a6a..82d167f 100644 --- a/security_docker_arm/Dockerfile +++ b/security_docker_arm/Dockerfile @@ -21,7 +21,8 @@ RUN DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \ python3-dev python3-pip python3-setuptools ipython3 iproute2 python3-venv RUN DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \ inetutils-ping inetutils-telnet inetutils-tools inetutils-traceroute inetutils-ftp && \ - mkdir /opt/executables && python3 -m pip install --upgrade setuptools wheel pip + mkdir /opt/executables && python3 -m venv /opt/pyenv && \ + . /opt/pyenv/bin/activate && pip install --upgrade setuptools wheel pip COPY --from=intermediate_builder /executables /opt/executables COPY --from=intermediate_builder /neovim-linux64.deb /neovim-linux64.deb @@ -119,8 +120,7 @@ RUN cd /opt/executables/ && \ ln -s /opt/powershell/pwsh /usr/bin/pwsh && \ cd /opt && git clone --depth 1 https://github.com/drwetter/testssl.sh.git -RUN python3 -m venv /opt/pyenv && \ - . /opt/pyenv/bin/activate && \ +RUN . /opt/pyenv/bin/activate && \ pip install requests boto3 semgrep && \ mkdir /opt/pycloudtools && \ cd /opt/pycloudtools && \ diff --git a/security_docker_main/Dockerfile b/security_docker_main/Dockerfile index 83dd561..63ad3a2 100644 --- a/security_docker_main/Dockerfile +++ b/security_docker_main/Dockerfile @@ -21,7 +21,8 @@ RUN DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \ python3-dev python3-pip python3-setuptools ipython3 iproute2 python3-venv RUN DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \ inetutils-ping inetutils-telnet inetutils-tools inetutils-traceroute inetutils-ftp && \ - mkdir /opt/executables && python3 -m pip install --upgrade setuptools wheel pip + mkdir /opt/executables && python3 -m venv /opt/pyenv && \ + . /opt/pyenv/bin/activate && pip install --upgrade setuptools wheel pip COPY --from=intermediate_builder /executables /opt/executables COPY --from=intermediate_builder /neovim-linux64.deb /neovim-linux64.deb @@ -119,8 +120,7 @@ RUN cd /opt/executables/ && \ ln -s /opt/powershell/pwsh /usr/bin/pwsh && \ cd /opt && git clone --depth 1 https://github.com/drwetter/testssl.sh.git -RUN python3 -m venv /opt/pyenv && \ - . /opt/pyenv/bin/activate && \ +RUN . /opt/pyenv/bin/activate && \ pip install requests boto3 semgrep && \ mkdir /opt/pycloudtools && \ cd /opt/pycloudtools && \ diff --git a/worker_docker_main/Dockerfile b/worker_docker_main/Dockerfile index 3afc94f..3c0351f 100644 --- a/worker_docker_main/Dockerfile +++ b/worker_docker_main/Dockerfile @@ -19,7 +19,8 @@ RUN DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \ RUN DEBIAN_FRONTEND="noninteractive" apt install -y --no-install-recommends \ p7zip-full python3 python3-pip python3-setuptools iproute2 python3-venv python3-dev \ inetutils-ping inetutils-telnet inetutils-tools inetutils-traceroute inetutils-ftp && \ - mkdir /opt/executables && python3 -m pip install --upgrade setuptools wheel pip + mkdir /opt/executables && python3 -m venv /opt/pyenv && \ + . /opt/pyenv/bin/activate && pip install --upgrade setuptools wheel pip COPY --from=intermediate_builder /executables /opt/executables COPY --from=intermediate_builder /neovim-linux64.deb /neovim-linux64.deb @@ -86,8 +87,7 @@ RUN cd / && \ # ========================================================================== Tool Installations Part Two ===== # ============================================================================================================ -RUN python3 -m venv /opt/pyenv && \ - . /opt/pyenv/bin/activate && \ +RUN . /opt/pyenv/bin/activate && \ pip install boto3 requests # ============================================================================================================