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.3KB

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