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

1234567891011121314151617181920212223242526272829303132333435
  1. FROM debian:jessie
  2. # FROM https://github.com/ZHAJOR/Docker-Apache-2.4-Php-5.6-for-Laravel
  3. MAINTAINER Robin Thoni <robin@rthoni.com>
  4. COPY run.sh /run.sh
  5. RUN apt-get update && apt-get -y install\
  6. apache2=2.4.*\
  7. libapache2-mod-php5\
  8. php5\
  9. php5-mcrypt\
  10. php5-pgsql\
  11. php5-mysql\
  12. php5-gd\
  13. php5-curl\
  14. php5-imap &&\
  15. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* &&\
  16. /usr/sbin/a2enmod rewrite &&\
  17. rm -rf /var/www/html &&\
  18. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  19. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  20. chmod -v +x /run.sh &&\
  21. ln -sf /dev/stderr /var/log/apache2/error.log &&\
  22. ln -sf /dev/stdout /var/log/apache2/access.log
  23. COPY apache2.conf /etc/apache2/apache2.conf
  24. EXPOSE 80
  25. COPY ./postfixadmin-3.0/ /var/www/html/
  26. RUN chmod -R 777 /var/www/html/templates_c
  27. #VOLUME ["/var/www/html"]
  28. CMD ["/run.sh"]