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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. FROM debian:jessie AS builder
  2. # FROM https://github.com/ZHAJOR/Docker-Apache-2.4-Php-5.6-for-Laravel
  3. MAINTAINER Robin Thoni <robin@rthoni.com>
  4. RUN apt-get update && apt-get -y install \
  5. git \
  6. curl && \
  7. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/ && \
  8. curl https://deb.nodesource.com/setup_7.x | bash && \
  9. ln -s /usr/bin/nodejs /usr/bin/node
  10. RUN apt-get update && apt-get -y install \
  11. nodejs && \
  12. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
  13. RUN npm install -g bower && \
  14. npm install -g grunt
  15. COPY ./SiteStatus/ /tmp/frontend
  16. RUN cd /tmp/frontend && \
  17. npm install && \
  18. bower --allow-root install && \
  19. for gruntfile in Gruntfile_*; do grunt --gruntfile "${gruntfile}"; done && \
  20. mkdir -p /var/www/ && \
  21. cp -r /tmp/frontend/build/release/ /var/www/html && \
  22. rm -rf /tmp/frontend
  23. FROM debian:jessie
  24. RUN apt-get update && apt-get -y install \
  25. apache2=2.4.* && \
  26. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
  27. RUN rm -rf /var/log/* &&\
  28. mkdir -p /var/log/apache2 &&\
  29. ln -s /dev/stderr /var/log/apache2/error.log &&\
  30. ln -s /dev/stdout /var/log/apache2/access.log &&\
  31. ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log &&\
  32. /usr/sbin/a2enmod rewrite proxy_http proxy_wstunnel &&\
  33. rm -rf /var/www/html &&\
  34. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  35. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
  36. COPY apache2.conf /etc/apache2/apache2.conf
  37. COPY ./vars-vars /etc/vars-vars
  38. COPY ./vars-files /etc/vars-files
  39. COPY ./run.sh /run.sh
  40. COPY --from=builder /var/www/html /var/www/html
  41. EXPOSE 80
  42. CMD ["/run.sh"]