Skip to content

Commit

Permalink
pyenv fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanq16 authored May 11, 2024
1 parent 777ef61 commit daa92f1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions security_docker_arm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 && \
Expand Down
6 changes: 3 additions & 3 deletions security_docker_main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 && \
Expand Down
6 changes: 3 additions & 3 deletions worker_docker_main/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

# ============================================================================================================
Expand Down

0 comments on commit daa92f1

Please sign in to comment.