-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (43 loc) · 1.28 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
FROM cmusei/fixbuf:2 AS build
LABEL maintainer="[email protected]"
ARG SILK_VERSION=3.23.1
# Pre-reqs:
# curl for downloading
# build-essentials for build tools
# ca-certs to download https
#
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
build-essential \
pkg-config \
ca-certificates \
libglib2.0-dev \
libssl-dev \
liblzo2-dev \
libsnappy-dev \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /netsa
RUN curl https://tools.netsa.cert.org/releases/silk-$SILK_VERSION.tar.gz | \
tar -xz && cd silk-* && \
./configure --prefix=/netsa \
--enable-ipv6 \
--enable-data-rootdir=/data/ \
--with-libfixbuf=/netsa/lib/pkgconfig \
--disable-analysis-tools && \
make && \
make install && \
cd ../ && rm -rf silk-$SILK_VERSION
FROM debian:11-slim
LABEL maintainer="[email protected]"
RUN apt-get update && apt-get install -y --no-install-recommends \
liblzo2-2 \
libsnappy1v5 \
zlib1g \
libgnutls30 \
libssl1.1 \
libglib2.0-0 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
ENV PATH=$PATH:/netsa/bin:/netsa/sbin
COPY --from=build /netsa/ /netsa/