-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (42 loc) · 1.34 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
52
ARG FIXBUF_VERSION=2
FROM cmusei/fixbuf:${FIXBUF_VERSION} AS build
LABEL maintainer="[email protected]"
ARG SUPER_VERSION=1.11.0
# 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 \
zlib1g-dev \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /netsa
RUN curl https://tools.netsa.cert.org/releases/super_mediator-$SUPER_VERSION.tar.gz | \
tar -xz && cd super_mediator-* && \
./configure --prefix=/netsa \
--with-libfixbuf=/netsa/lib/pkgconfig \
--with-openssl \
--with-mysql=no && \
make && \
make install && \
cd ../ && rm -rf super_mediator-$SUPER_VERSION
FROM debian:11-slim
LABEL maintainer="[email protected]"
RUN apt-get update && apt-get install -y --no-install-recommends \
libglib2.0-0 \
zlib1g \
libssl1.1 \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=build /netsa/ /netsa/
COPY super_mediator.conf /usr/local/etc/
COPY docker-entrypoint.sh /usr/local/bin/
RUN ln -s /usr/local/bin/docker-entrypoint.sh /
ENTRYPOINT ["docker-entrypoint.sh"]