Public | Automated Build

Last pushed: 2 years ago
FROM ubuntu:14.04 MAINTAINER # Update existing packages & install LAMPSTACK RUN apt-get update RUN apt-get install -y lamp-server^ && \ apt-get install -y wget unzip pwgen RUN apt-get install -y libapache2-mod-php5 php5-mcrypt php5-gd RUN apt-get install -y curl libcurl3 libcurl3-dev php5-curl php5-mcrypt # Download opencart ADD /tmp/ # Remove previous files of default document root RUN rm -rf /var/www/html/* # Extract Opencart RUN mv /tmp/down.php /tmp/ RUN cd /tmp && unzip RUN mv /tmp/upload-2200-rs1 /tmp/upload RUN cd /tmp && mv upload /var/www/html/opencart RUN cd /var/www/html/opencart && mv config-dist.php config.php RUn cd /var/www/html/opencart/admin && mv config-dist.php config.php # Grant permission of the directory to apache2 RUN chown -R www-data:www-data /var/www/html && \ chmod -R 755 /var/www/html RUN sed -i -e"s/^bind-address\s*=\s* =" /etc/mysql/my.cnf RUN apt-get install -y supervisor RUN mkdir -p /var/log/supervisor RUN php5enmod mcrypt ADD /etc/ ADD supervisord.conf /etc/supervisor/conf.d/supervisord.conf ADD adminer.php /var/www/html/cscart/ ADD / RUN chmod 755 / RUN ./ > /password.txt EXPOSE 80 EXPOSE 3306 CMD ["/usr/bin/supervisord"]
Source Repository