forked from drachtio/drachtio-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 1.22 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
FROM debian:jessie
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 git autoconf automake curl libtool libtool-bin libssl-dev libcurl4-openssl-dev \
&& git clone --depth=50 --branch=develop git://github.com/davehorton/drachtio-server.git /usr/local/src/drachtio-server \
&& 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 CPPFLAGS='-DNDEBUG' CXXFLAGS='-O0' \
&& make \
&& make install \
&& apt-get purge -y --quiet --force-yes --auto-remove gcc g++ make build-essential git autoconf automake curl libtool libtool-bin \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ \
&& rm -Rf /var/log/* \
&& rm -Rf /var/lib/apt/lists/* \
&& cd /usr/local/src \
&& cp drachtio-server/docker.drachtio.conf.xml /etc/drachtio.conf.xml \
&& cp drachtio-server/entrypoint.sh / \
&& rm -Rf drachtio-server \
&& cd /usr/local/bin \
&& rm -f timer ssltest parser uri_test test_https test_asio_curl
VOLUME ["/config"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["drachtio"]