A step by step process to install Asterisk.
I have tested on Ubuntu 16.04, nevertheless, it will work on another distro with few changes.
Update and Upgrade the system
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
FROM ubuntu:14.04 | |
MAINTAINER Bigyan | |
RUN apt-get update | |
RUN apt-get install apache2 -y | |
RUN apt-get install php5 libapache2-mod-php5 php5-mcrypt -y | |
RUN sed -i 's/DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm/DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm/g' /etc/apache2/mods-enabled/dir.conf | |
ADD index.php /var/www/html/index.php | |
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] |