FROM robinthoni/debian-multiarch:jessie ARG CONFIG_DIR=/etc/default/config-files/ # FROM https://github.com/ZHAJOR/Docker-Apache-2.4-Php-5.6-for-Laravel MAINTAINER Robin Thoni RUN apt-get update && apt-get -y install\ apache2=2.4.* &&\ apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* RUN /usr/sbin/a2enmod rewrite &&\ rm -rf /var/www/html &&\ mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\ chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html RUN rm -rf /var/log/* &&\ mkdir -p /var/log/apache2 &&\ ln -s /dev/stderr /var/log/apache2/error.log &&\ ln -s /dev/stdout /var/log/apache2/access.log &&\ ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log RUN a2enmod proxy_http RUN mkdir "${CONFIG_DIR}" COPY apache2.conf "${CONFIG_DIR}"/apache2.conf COPY ./frontend/ /var/www/html/ COPY ./vars-vars /etc/vars-vars COPY ./vars-files /etc/vars-files COPY ./common.sh /common.sh COPY ./run.sh /run.sh EXPOSE 80 CMD ["/run.sh"]