forked from gamemann/XDP-Firewall
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.server
50 lines (42 loc) · 1.54 KB
/
Dockerfile.server
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
46
47
48
49
50
FROM ubuntu:20.04
ENV TZ=Asia/Dubai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update
RUN echo ***************************************0
RUN apt install make vim -y
RUN echo ***************************************1
RUN apt install libconfig-dev llvm clang libelf-dev build-essential -y
RUN echo ***************************************2
RUN apt install iproute2 netcat tcpdump bpftrace -y
RUN echo ***************************************3
RUN apt install libpcap-dev gcc-multilib -y
RUN echo ***************************************4
RUN apt install linux-tools-$(uname -r) -y
RUN echo ***************************************5
RUN apt install curl iputils-ping net-tools bash bash-completion -y
RUN echo ***************************************6
RUN apt install python3 -y
RUN echo ***************************************6.5
RUN apt install python3-pip -y
RUN echo ***************************************7
RUN python3 -m pip install numpy pandas matplotlib
RUN echo ***************************************8
RUN python3 -m pip install sklearn wheel
RUN echo ***************************************9
RUN apt install python3-scapy -y
RUN apt install strace -y
WORKDIR /app_xdp_fw
COPY libbpf libbpf
COPY other other
COPY src src
COPY Makefile .
COPY xdpfw.conf.s1 .
COPY xdpfw.conf.s2 .
WORKDIR /app_ddos_detection
COPY ddos_ml/echo_server/server.py echo_server/
COPY ddos_ml/models/dt_model.pkl .
COPY ddos_ml/models/kmeans_model.pkl .
COPY ddos_ml/sniff.py .
COPY ddos_ml/stage1.py .
COPY show_process_output.sh .
CMD ["bash"]