Last active
March 11, 2021 15:29
-
-
Save tobiasfriden/ebccbe35c94b2c8d507922e0edf7bbba to your computer and use it in GitHub Desktop.
Janus/Debian buster Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster | |
LABEL maintainer="Tobias Fridén" | |
LABEL description="Provides an image with Janus Gateway on Debian buster" | |
RUN apt-get update -y \ | |
&& apt-get upgrade -y | |
RUN apt-get install -y \ | |
build-essential \ | |
libmicrohttpd-dev \ | |
libjansson-dev \ | |
libnice-dev \ | |
libssl-dev \ | |
libsofia-sip-ua-dev \ | |
libglib2.0-dev \ | |
libopus-dev \ | |
libogg-dev \ | |
libini-config-dev \ | |
libcollection-dev \ | |
libconfig-dev \ | |
pkg-config \ | |
gengetopt \ | |
libtool \ | |
autotools-dev \ | |
automake \ | |
wget | |
RUN apt-get install -y \ | |
sudo \ | |
make \ | |
git \ | |
doxygen \ | |
graphviz \ | |
cmake | |
RUN cd ~ \ | |
&& wget https://github.com/cisco/libsrtp/archive/v2.1.0.tar.gz \ | |
&& tar xfv v2.1.0.tar.gz \ | |
&& cd libsrtp-2.1.0 \ | |
&& ./configure --prefix=/usr --enable-openssl \ | |
&& make shared_library && sudo make install | |
RUN cd ~ \ | |
&& git clone https://github.com/sctplab/usrsctp \ | |
&& cd usrsctp \ | |
&& ./bootstrap \ | |
&& ./configure --prefix=/usr \ | |
&& make \ | |
&& sudo make install | |
RUN cd ~ \ | |
&& git clone https://github.com/warmcat/libwebsockets.git \ | |
&& cd libwebsockets \ | |
&& git checkout v2.1.0 \ | |
&& mkdir build \ | |
&& cd build \ | |
&& cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. \ | |
&& make \ | |
&& sudo make install | |
RUN cd ~ \ | |
&& git clone https://github.com/meetecho/janus-gateway.git \ | |
&& cd janus-gateway \ | |
&& sh autogen.sh \ | |
&& ./configure --prefix=/opt/janus --disable-rabbitmq --disable-mqtt \ | |
&& make CFLAGS='-std=c99' \ | |
&& make install \ | |
&& make configs | |
RUN cp -rp ~/janus-gateway/certs /opt/janus/share/janus | |
RUN apt-get install nginx -y | |
COPY nginx/nginx.conf /etc/nginx/nginx.conf | |
EXPOSE 80 7088 8088 8188 8089 | |
EXPOSE 10000-10200/udp | |
CMD service nginx restart && /opt/janus/bin/janus -6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment