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.

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. ARG SPI_USER_UID=999
  6. RUN apt-get update && apt-get -y install\
  7. curl\
  8. make\
  9. build-essential\
  10. gcc\
  11. git\
  12. unzip\
  13. apache2=2.4.*\
  14. libapache2-mod-php5\
  15. php5\
  16. php5-mcrypt\
  17. php5-imagick\
  18. php5-gd &&\
  19. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  20. RUN curl https://getcomposer.org/composer.phar -o /usr/local/bin/composer \
  21. && chmod +x /usr/local/bin/composer
  22. RUN /usr/sbin/a2enmod rewrite &&\
  23. rm -rf /var/www/html &&\
  24. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  25. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
  26. RUN rm -rf /var/log/* &&\
  27. mkdir -p /var/log/apache2 &&\
  28. ln -s /dev/stderr /var/log/apache2/error.log &&\
  29. ln -s /dev/stdout /var/log/apache2/access.log &&\
  30. ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
  31. COPY apache2.conf /etc/apache2/apache2.conf
  32. COPY ./backend/composer.* /var/www/html/
  33. COPY ./backend/database/ /var/www/html/database/
  34. COPY ./backend/tests/ /var/www/html/tests/
  35. RUN cd /var/www/html && composer install
  36. RUN cd /tmp && git clone https://github.com/piface/libmcp23s17 && cd libmcp23s17 && make && make install && cd / && rm /tmp/libmcp23s17 -rf
  37. RUN cd /tmp && git clone https://github.com/piface/libpifacedigital && cd libpifacedigital && make && make install && cd / && rm /tmp/libpifacedigital -rf
  38. RUN cd /tmp && git clone https://git.rthoni.com/camotion/piface && cd piface && git checkout v1.1.1 && make && make install && cd / && rm /tmp/piface -rf
  39. RUN groupadd -g "${SPI_USER_UID}" spi && usermod -a -G spi www-data
  40. COPY env "${CONFIG_DIR}"
  41. COPY ./backend/ /var/www/html/
  42. RUN chmod -R 777 /var/www/html/storage/
  43. #&& ln -s /dev/stdout /var/www/html/storage/logs/lumen.log
  44. COPY ./vars-vars /etc/vars-vars
  45. COPY ./vars-files /etc/vars-files
  46. COPY ./common.sh /common.sh
  47. COPY ./run.sh /run.sh
  48. EXPOSE 80
  49. CMD ["/run.sh"]