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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. curl\
  7. git\
  8. unzip\
  9. apache2=2.4.*\
  10. libapache2-mod-php5\
  11. php5\
  12. php5-mcrypt\
  13. php5-imagick\
  14. php5-gd &&\
  15. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  16. RUN curl https://getcomposer.org/composer.phar -o /usr/local/bin/composer \
  17. && chmod +x /usr/local/bin/composer
  18. RUN /usr/sbin/a2enmod rewrite &&\
  19. rm -rf /var/www/html &&\
  20. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  21. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
  22. RUN rm -rf /var/log/* &&\
  23. mkdir -p /var/log/apache2 &&\
  24. ln -s /dev/stderr /var/log/apache2/error.log &&\
  25. ln -s /dev/stdout /var/log/apache2/access.log &&\
  26. ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
  27. COPY apache2.conf /etc/apache2/apache2.conf
  28. COPY ./backend/ /var/www/html/
  29. RUN cd /var/www/html && composer install
  30. COPY env "${CONFIG_DIR}"
  31. RUN chmod -R 777 /var/www/html/storage/
  32. #&& ln -s /dev/stdout /var/www/html/storage/logs/lumen.log
  33. COPY ./vars-vars /etc/vars-vars
  34. COPY ./vars-files /etc/vars-files
  35. COPY ./common.sh /common.sh
  36. COPY ./run.sh /run.sh
  37. EXPOSE 80
  38. CMD ["/run.sh"]