-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
40 lines (35 loc) · 964 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
FROM alpine:edge
LABEL maintainer "[email protected]"
RUN apk update \
&& apk add libcap \
gmp-dev \
json-c-dev \
libpcap \
libunistring-dev \
\
&& apk add --virtual .deps \
build-base \
byacc \
cmake \
flex \
gengetopt \
git \
libpcap-dev \
linux-headers \
\
&& ln -s /usr/bin/yacc /usr/bin/byacc \
&& git clone --branch=master \
--depth=1 \
https://github.com/zmap/zmap.git \
\
&& cd zmap \
&& cmake . \
&& make -j4 \
&& make install \
\
&& apk del .deps \
&& rm -rf /zmap /var/cache/apk/*
RUN adduser -D zmap \
&& setcap cap_net_raw=eip /usr/local/sbin/zmap
USER zmap
ENTRYPOINT ["/usr/local/sbin/zmap"]