-
Notifications
You must be signed in to change notification settings - Fork 357
/
Dockerfile
33 lines (22 loc) · 939 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
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.8/terraform_1.9.8_linux_amd64.zip -o terraform.zip && \
unzip terraform.zip && \
mv terraform /usr/local/bin/
RUN echo 'alias python=python3.12' >> ~/.bashrc
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 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 python3.12 -m pip install -r requirements.txt