tg2sip/buildenv/Dockerfile.bionic

48 lines
1.5 KiB
Docker
Raw Normal View History

2018-10-04 07:07:36 +00:00
FROM ubuntu:bionic
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential git \
wget ca-certificates \
pkg-config libopus-dev libssl-dev \
zlib1g-dev gperf ccache \
&& rm -rf /var/lib/apt/lists/*
2020-07-25 10:46:31 +00:00
RUN wget https://cmake.org/files/v3.18/cmake-3.18.0-Linux-x86_64.sh \
&& sh cmake-3.18.0-Linux-x86_64.sh --prefix=/usr --exclude-subdir
2018-10-04 07:07:36 +00:00
COPY tdlib_header.patch /
COPY tdlib_threadname.patch /
RUN git clone https://github.com/tdlib/td.git \
&& cd td \
2020-07-25 10:46:31 +00:00
&& git reset --hard v1.6.0 \
2018-10-04 07:07:36 +00:00
&& git apply /tdlib_header.patch \
&& git apply /tdlib_threadname.patch \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release .. \
2020-07-25 10:46:31 +00:00
&& cmake --build . --target install -j $(grep -c ^processor /proc/cpuinfo) \
2018-10-04 07:07:36 +00:00
&& cd / \
&& rm -rf td
COPY config_site.h /
RUN git clone https://github.com/pjsip/pjproject.git \
2018-10-04 07:07:36 +00:00
&& cd pjproject \
&& git reset --hard 2.9 \
2018-10-04 07:07:36 +00:00
&& cp /config_site.h pjlib/include/pj \
&& ./configure --disable-sound CFLAGS="-O3 -DNDEBUG" \
2020-07-25 10:46:31 +00:00
&& make dep && make -j $(grep -c ^processor /proc/cpuinfo) && make install \
2018-10-04 07:07:36 +00:00
&& cd / \
&& rm -rf pjproject
RUN git clone -n https://github.com/gabime/spdlog.git \
&& cd spdlog \
&& git checkout tags/v0.17.0 \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_BUILD_TYPE=Release -DSPDLOG_BUILD_EXAMPLES=OFF -DSPDLOG_BUILD_TESTING=OFF .. \
2020-07-25 10:46:31 +00:00
&& cmake --build . --target install -j $(grep -c ^processor /proc/cpuinfo) \
2018-10-04 07:07:36 +00:00
&& cd / \
&& rm -rf spdlog