File: Dockerfile.alpine

package info (click to toggle)
nfdump 1.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,088 kB
  • sloc: ansic: 70,038; yacc: 1,833; sh: 467; makefile: 320; lex: 278; perl: 271
file content (31 lines) | stat: -rw-r--r-- 811 bytes parent folder | download | duplicates (2)
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
#
# Example Alpine Dockerfile
#

FROM alpine:3

ARG NFDUMP_VERSION=1.7.3

WORKDIR /tmp

ADD https://github.com/phaag/nfdump/archive/refs/tags/v$NFDUMP_VERSION.tar.gz /tmp
RUN \
  apk add --no-cache build-base gcc abuild binutils make &&
  apk add --no-cache libtool bzip2-dev libpcap-dev flex bison &&
  apk add --no-cache autoconf automake m4 pkgconfig

RUN \
  tar zxf v$NFDUMP_VERSION.tar.gz &&
  cd /tmp/nfdump-$NFDUMP_VERSION &&
  ./autogen.sh &&
  ./configure --enable-maxmind --enable-nfpcapd --enable-sflow=yes &&
  make &&
  cd /tmp/nfdump-$NFDUMP_VERSION && make install &&
  cd .. &&
  rm -rf nfdump-v$NFDUMP_VERSION &&
  rm /tmp/v$NFDUMP_VERSION.tar.gz &&
  apk del build-base gcc flex bison autoconf automake m4 pkgconfig

VOLUME /data

CMD ["nfcapd", "-w", "/data", "-S", "1", "-y", "-p", "9999"]