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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. RUN apt-get update && apt-get -y install\
  5. wget &&\
  6. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  7. ARG ZABBIX_VERSION=3.4
  8. RUN wget http://repo.zabbix.com/zabbix/${ZABBIX_VERSION}/debian/pool/main/z/zabbix-release/zabbix-release_${ZABBIX_VERSION}-1+jessie_all.deb -O /tmp/zabbix.deb &&\
  9. dpkg -i /tmp/zabbix.deb
  10. RUN apt-get update && apt-get -y install\
  11. zabbix-frontend-php\
  12. apache2=2.4.*\
  13. libapache2-mod-php5\
  14. php5\
  15. php5-mcrypt\
  16. php5-pgsql\
  17. php5-mysql\
  18. php5-gd\
  19. php5-curl\
  20. php5-imap &&\
  21. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  22. RUN /usr/sbin/a2enmod rewrite &&\
  23. rm -rf /var/www/html &&\
  24. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  25. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
  26. RUN rm -rf /var/log/* &&\
  27. mkdir -p /var/log/apache2 &&\
  28. ln -s /dev/stderr /var/log/apache2/error.log &&\
  29. ln -s /dev/stdout /var/log/apache2/access.log &&\
  30. ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
  31. COPY apache2.conf /etc/apache2/apache2.conf
  32. COPY zabbix.conf.php /etc/zabbix/web/zabbix.conf.php
  33. COPY php.ini /etc/php5/apache2/php.ini
  34. COPY ./vars-vars /etc/vars-vars
  35. COPY ./vars-files /etc/vars-files
  36. COPY ./run.sh /run.sh
  37. EXPOSE 80
  38. CMD ["/run.sh"]