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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. 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. RUN /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. RUN rm -rf /var/log/* &&\
  21. mkdir -p /var/log/apache2 &&\
  22. ln -s /dev/stderr /var/log/apache2/error.log &&\
  23. ln -s /dev/stdout /var/log/apache2/access.log &&\
  24. ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
  25. RUN apt-get update && \
  26. apt-get install -y curl && \
  27. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  28. RUN dist=$(if uname -m | grep -iq arm ; then echo raspbian; else echo debian; fi) &&\
  29. echo "deb http://repo.powerdns.com/${dist} jessie-auth-40 main" > /etc/apt/sources.list.d/pdns.list && \
  30. echo 'Package: pdns-*\nPin: origin repo.powerdns.com\nPin-Priority: 600' > /etc/apt/preferences.d/pdns && \
  31. curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add -
  32. COPY ./preseed.txt /tmp/preseed.txt
  33. RUN debconf-set-selections /tmp/preseed.txt
  34. RUN DEBIAN_FRONTEND=noninteractive apt-get update &&\
  35. apt-get install -y pdns-server pdns-backend-pgsql &&\
  36. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  37. RUN rm -rf /etc/powerdns/*
  38. COPY apache2.conf /etc/apache2/apache2.conf
  39. COPY ./poweradmin-2.1.8/ /var/www/html/
  40. COPY ./vars-vars /etc/vars-vars
  41. COPY ./vars-files /etc/vars-files
  42. COPY ./common.sh /common.sh
  43. COPY ./run.sh /run.sh
  44. RUN mkdir "${CONFIG_DIR}"
  45. COPY ./poweradmin-2.1.7/inc/config.inc.php "${CONFIG_DIR}"/config.inc.php
  46. COPY ./pdns.conf "${CONFIG_DIR}"/pdns.conf
  47. EXPOSE 80
  48. CMD ["/run.sh"]