Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

Dockerfile 1.6KB

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