Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
davehorton committed Sep 23, 2024
1 parent f6c9abf commit e773785
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
FROM debian:bookworm-slim

ARG BUILD_CPUS=16

RUN apt-get update \
&& apt-get -y --quiet --force-yes upgrade \
&& apt-get install -y --no-install-recommends ca-certificates gcc g++ make build-essential cmake git autoconf automake curl libtool libtool-bin libssl-dev libcurl4-openssl-dev zlib1g-dev libgoogle-perftools-dev jq \
&& apt-get install -y --no-install-recommends ca-certificates gcc g++ make build-essential cmake git autoconf libboost-all-dev libhiredis-dev \
automake curl libtool libtool-bin libssl-dev libcurl4-openssl-dev zlib1g-dev libgoogle-perftools-dev jq \
&& git clone --depth=50 --branch=main https://github.com/drachtio/drachtio-server.git /usr/local/src/drachtio-server \
&& cd /usr/local/src \
&& curl -O http://ftp.gnu.org/gnu/autoconf/autoconf-2.71.tar.gz && tar -xvf autoconf-2.71.tar.gz \
&& cd autoconf-2.71 && ./configure && make && make install \
&& cd /usr/local/src \
&& rm -Rf autoconf-2.71 \
&& cd /usr/local/src/drachtio-server \
&& git submodule update --init --recursive \
&& ./bootstrap.sh \
&& mkdir /usr/local/src/drachtio-server/build \
&& cd /usr/local/src/drachtio-server/build \
&& ../configure --enable-tcmalloc=yes CPPFLAGS='-DNDEBUG' CXXFLAGS='-O2' \
&& make \
&& make-j ${BUILD_CPUS} \
&& make install \
&& apt-get purge -y --quiet --auto-remove gcc g++ make cmake build-essential git autoconf automake libtool libtool-bin \
&& rm -rf /var/lib/apt/* \
Expand Down

0 comments on commit e773785

Please sign in to comment.