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

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