-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
59 lines (55 loc) · 1.03 KB
/
Containerfile
File metadata and controls
59 lines (55 loc) · 1.03 KB
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
51
52
53
54
55
56
57
58
FROM debian:bookworm-slim
RUN apt -y update \
&& apt install -y \
apt-utils \
autoconf \
automake \
build-essential \
git \
libcurl4-openssl-dev \
libgeoip-dev \
liblmdb-dev \
libpcre2-dev \
libtool \
libxml2-dev \
libyajl-dev \
pkgconf \
wget \
zlib1g-dev \
curl \
gcc \
g++ \
gdb \
clang \
make \
ninja-build \
cmake \
valgrind \
locales-all \
dos2unix \
rsync \
tar \
lua5.4 \
liblua5.4-dev
RUN apt clean \
&& git clone \
--depth 1 \
-b v3/master \
--single-branch https://github.com/owasp-modsecurity/ModSecurity
RUN cd /ModSecurity \
&& git submodule init \
&& git submodule update \
&& ./build.sh \
&& ./configure --with-lua \
&& make \
&& make install
COPY config/ /config
COPY new-conf/ /tmp/new-conf
COPY include/ /wafie/include
COPY src/ /wafie/src
COPY CMakeLists.txt /wafie
RUN cd /wafie \
&& mkdir build \
&& cd build \
&& cmake ../ \
&& cmake --build .