File: Dockerfile.ubuntu

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 (55 lines) | stat: -rw-r--r-- 939 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Example Ubuntu Dockerfile
#

# Pull base image.
FROM ubuntu:latest

ARG NFDUMP_VERSION=1.7.3

#Expose netflow port
EXPOSE 9995/udp

# Install.
RUN apt-get update && apt-get install -y \
  wget \
  unzip \
  man \
  apt-utils \
  dialog \
  pkg-config \
  libtool \
  autoconf \
  autogen \
  bison \
  byacc \
  flex \
  make \
  libpcap-dev \
  libbz2-dev &&
  rm -rf /var/lib/apt/lists/*

RUN cd /usr/src &&
  wget https://github.com/phaag/nfdump/archive/refs/tags/v$NFDUMP_VERSION.tar.gz &&
  tar xfz v$NFDUMP_VERSION.tar.gz &&
  cd nfdump-$NFDUMP_VERSION &&
  ./autogen.sh &&
  ./configure --enable-nfpcapd --enable-maxmind --enable-sflow &&
  make &&
  make install

RUN ldconfig

# Add files.
#ADD root/.bashrc /root/.bashrc
#ADD root/.gitconfig /root/.gitconfig
#ADD root/.scripts /root/.scripts

# Set environment variables.
#ENV HOME /root

# Define working directory.
WORKDIR /usr/src

# Define default command.
CMD ["bash"]