Skip to content

Commit

Permalink
Update dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Bareiss committed Sep 30, 2024
1 parent fe7b7c6 commit 618a905
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y python3.10 git unzip python3-pip curl vim lsb-release software-properties-common
RUN apt update && apt upgrade -y
RUN apt-get install -y software-properties-common
RUN apt update
RUN add-apt-repository ppa:deadsnakes/ppa
RUN apt update
RUN apt install -y python3.12

RUN apt-get install -y git unzip python3-pip curl vim

RUN curl -s https://releases.hashicorp.com/terraform/1.9.6/terraform_1.9.6_linux_amd64.zip -o terraform.zip && \
unzip terraform.zip && \
mv terraform /usr/local/bin/

RUN echo 'alias python=python3' >> ~/.bashrc
RUN echo 'alias python=python3.12' >> ~/.bashrc

RUN pip3 install poetry
RUN pip3 install --upgrade awscli requests
RUN pip3 install azure-cli
RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
python3.12 get-pip.py && \
rm get-pip.py
RUN python3.12 -m pip install --upgrade setuptools wheel

RUN git clone https://github.com/splunk/attack_range.git
COPY requirements.txt /attack_range/requirements.txt
RUN python3.12 -m pip install --upgrade pip

RUN python3.12 -m pip install --upgrade awscli azure-cli

RUN git clone https://github.com/splunk/attack_range.git

WORKDIR /attack_range

RUN pip3 install -r requirements.txt
RUN python3.12 -m pip install -r requirements.txt

0 comments on commit 618a905

Please sign in to comment.