-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
45 lines (34 loc) · 870 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
33
34
35
36
37
38
39
40
41
42
43
44
45
# Use an official Ubuntu as a base image
FROM ubuntu:latest
# Install necessary dependencies
RUN apt-get update && \
apt-get --assume-yes install \
apt-utils \
systemd \
snap \
snapd \
python3 \
python3-pip \
net-tools \
sudo \
nmap \
&& rm -rf /var/lib/apt/lists/*
ENV PATH=$PATH:/snap/bin
# Set the working directory to /app
WORKDIR /app
# Copy all files from the current directory and its subdirectories to the container
COPY . .
# Install pymetasploit3 using pip
RUN sudo pip3 install pymetasploit3
RUN pip3 install pymetasploit3
RUN sudo pip3 install msgpack
RUN pip3 install msgpack
RUN sudo pip3 install retry
RUN pip3 install retry
RUN sudo pip3 install requests
RUN pip3 install requests
# Run the setup.sh script
# RUN chmod +x setup.sh
# RUN ./setup.sh
# Run the main.py script
CMD ["python3", "main.py"]