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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. apache2=2.4.*\
  9. libapache2-mod-php5\
  10. php5\
  11. php5-mcrypt\
  12. php5-pgsql\
  13. php5-gd\
  14. php5-curl &&\
  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 ./api/ /var/www/html/
  29. RUN cd /var/www/html && composer install
  30. RUN mkdir "${CONFIG_DIR}"
  31. COPY env "${CONFIG_DIR}"
  32. RUN chmod -R 777 /var/www/html/storage/
  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"]