Created
May 26, 2020 05:43
-
-
Save mekya/c927d270ad8500610f8bdc7d3877f30a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ubuntu:18.04 | |
ARG AntMediaServer | |
ARG MongoDBServer= | |
ARG MongoDBUsername= | |
ARG MongoDBPassword= | |
RUN apt-get update | |
RUN apt-get install -y libcap2 wget net-tools | |
ADD ./${AntMediaServer} /home | |
RUN cd home \ | |
&& pwd \ | |
&& wget https://raw.githubusercontent.com/ant-media/Scripts/master/install_ant-media-server.sh \ | |
&& chmod 755 install_ant-media-server.sh | |
RUN cd home \ | |
&& pwd \ | |
&& ./install_ant-media-server.sh ${AntMediaServer} | |
RUN update-java-alternatives -s java-1.8.0-openjdk-amd64 | |
RUN /bin/bash -c 'if [ ! -z "${MongoDBServer}" ]; then \ | |
/usr/local/antmedia/change_server_mode.sh cluster ${MongoDBServer} ${MongoDBUsername} ${MongoDBPassword}; \ | |
fi' | |
CMD cd /usr/local/antmedia && ./start.sh | |
#ENTRYPOINT service antmedia start && /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment