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

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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-gd &&\
  11. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  12. RUN /usr/sbin/a2enmod rewrite &&\
  13. rm -rf /var/www/html &&\
  14. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  15. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
  16. RUN rm -rf /var/log/* &&\
  17. mkdir -p /var/log/apache2 &&\
  18. ln -s /dev/stderr /var/log/apache2/error.log &&\
  19. ln -s /dev/stdout /var/log/apache2/access.log &&\
  20. ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
  21. COPY apache2.conf /etc/apache2/apache2.conf
  22. COPY ./backend/ /var/www/html/
  23. COPY ./vars-vars /etc/vars-vars
  24. COPY ./vars-files /etc/vars-files
  25. COPY ./common.sh /common.sh
  26. COPY ./run.sh /run.sh
  27. RUN mkdir "${CONFIG_DIR}"
  28. EXPOSE 80
  29. CMD ["/run.sh"]