-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
55 lines (41 loc) · 1.43 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
FROM ubuntu:18.04
ARG SIPP_VERSION=3.5.2
COPY . /app
WORKDIR /app
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y \
&& apt-get install -y --no-install-recommends\
curl \
ca-certificates \
dh-autoreconf \
ncurses-dev \
pkg-config \
build-essential \
libssl-dev \
libpcap-dev \
libncurses5-dev \
libsctp-dev \
lksctp-tools
RUN ./get_sipp.sh -v "v${SIPP_VERSION}" \
&& mv sipp-${SIPP_VERSION} sipp \
&& cd sipp \
&& ./build.sh --with-sctp --with-pcap --with-openssl
FROM ubuntu:18.04
RUN mkdir -p /app/lib
COPY --from=0 /app/sipp/sipp /app/sipp
COPY --from=0 /usr/lib/x86_64-linux-gnu/libpcap.so.0.8 /app/lib
COPY --from=0 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 /app/lib
COPY --from=0 /usr/lib/x86_64-linux-gnu/libssl.so.1.1 /app/lib
COPY --from=0 /lib/x86_64-linux-gnu/libpthread.so.0 /app/lib
COPY --from=0 /lib/x86_64-linux-gnu/libncurses.so.5 /app/lib
COPY --from=0 /lib/x86_64-linux-gnu/libtinfo.so.5 /app/lib
COPY --from=0 /usr/lib/x86_64-linux-gnu/libstdc++.so.6 /app/lib
COPY --from=0 /lib/x86_64-linux-gnu/libm.so.6 /app/lib
COPY --from=0 /lib/x86_64-linux-gnu/libdl.so.2 /app/lib
COPY --from=0 /usr/lib/x86_64-linux-gnu/libsctp.so.1 /app/lib
COPY --from=0 /lib/x86_64-linux-gnu/libgcc_s.so.1 /app/lib
COPY --from=0 /lib/x86_64-linux-gnu/libc.so.6 /app/lib
WORKDIR /app
ENV PATH="/app:$PATH"
ENV LD_LIBRARY_PATH="/app/lib:$LD_LIBRARY_PATH"
ENTRYPOINT ["sipp"]