-
Notifications
You must be signed in to change notification settings - Fork 431
Expand file tree
/
Copy pathDockerfile.debian
More file actions
57 lines (51 loc) · 1.19 KB
/
Dockerfile.debian
File metadata and controls
57 lines (51 loc) · 1.19 KB
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
56
57
# Usage (from within the git repo):
# git submodule update --init
# docker build -t sipp -f docker/Dockerfile.debian .
FROM debian:12-slim AS build
ARG FULL=''
ARG WOLFSSL=''
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
binutils \
cmake \
g++ \
gcc \
git \
libgsl-dev \
libpcap-dev \
libncurses-dev \
libpugixml-dev \
make \
ninja-build \
${WOLFSSL:+libwolfssl-dev} \
${FULL:+libsctp-dev libssl-dev}
WORKDIR /sipp
COPY CMakeLists.txt ./
COPY src src
COPY include include
COPY gtest gtest
ARG DEBUG=''
RUN --mount=type=bind,target=.git,source=.git \
git config --global --add safe.directory /sipp && \
cmake . -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_PCAP=1 \
-DUSE_GSL=1 \
-DUSE_SYSTEM_PUGIXML=ON \
${WOLFSSL:+-DUSE_WOLFSSL=1} \
${DEBUG:+-DDEBUG=1} \
${FULL:+-DUSE_SCTP=1} \
&& ninja
FROM debian:12-slim
CMD ["sipp"]
ARG FULL=''
ARG WOLFSSL=''
RUN apt-get update && apt-get install -y --no-install-recommends \
libgsl27 \
libpcap0.8 \
libncursesw6 \
${WOLFSSL:+libwolfssl35} \
${FULL:+libsctp1 libssl3} \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
COPY --from=build /sipp/sipp /usr/local/bin/sipp