You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM robinthoni/debian-multiarch:jessie
  2. ARG CONFIG_DIR=/etc/default/config-files/
  3. # FROM https://github.com/ZHAJOR/Docker-Apache-2.4-Php-5.6-for-Laravel
  4. MAINTAINER Robin Thoni <robin@rthoni.com>
  5. RUN apt-get update && apt-get -y install\
  6. apache2=2.4.* &&\
  7. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  8. RUN /usr/sbin/a2enmod rewrite &&\
  9. rm -rf /var/www/html &&\
  10. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  11. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
  12. RUN rm -rf /var/log/* &&\
  13. mkdir -p /var/log/apache2 &&\
  14. ln -s /dev/stderr /var/log/apache2/error.log &&\
  15. ln -s /dev/stdout /var/log/apache2/access.log &&\
  16. ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
  17. RUN a2enmod proxy_http
  18. RUN mkdir "${CONFIG_DIR}"
  19. COPY apache2.conf "${CONFIG_DIR}"/apache2.conf
  20. COPY ./frontend/ /var/www/html/
  21. COPY ./vars-vars /etc/vars-vars
  22. COPY ./vars-files /etc/vars-files
  23. COPY ./common.sh /common.sh
  24. COPY ./run.sh /run.sh
  25. EXPOSE 80
  26. CMD ["/run.sh"]