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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. FROM debian:jessie
  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. apache2=2.4.* \
  6. git \
  7. curl && \
  8. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/ && \
  9. curl https://deb.nodesource.com/setup_7.x | bash && \
  10. ln -s /usr/bin/nodejs /usr/bin/node
  11. RUN apt-get update && apt-get -y install \
  12. nodejs && \
  13. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/ && \
  14. curl https://www.npmjs.com/install.sh | sh
  15. RUN npm install -g bower && \
  16. npm install -g grunt
  17. RUN /usr/sbin/a2enmod rewrite &&\
  18. rm -rf /var/www/html &&\
  19. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  20. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
  21. RUN rm -rf /var/log/* &&\
  22. mkdir -p /var/log/apache2 &&\
  23. ln -s /dev/stderr /var/log/apache2/error.log &&\
  24. ln -s /dev/stdout /var/log/apache2/access.log &&\
  25. ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
  26. RUN a2enmod proxy_http
  27. COPY apache2.conf /etc/apache2/apache2.conf
  28. COPY ./frontend/ /tmp/frontend
  29. RUN cd /tmp/frontend && \
  30. npm install && \
  31. bower --allow-root install && \
  32. grunt --gruntfile Gruntfile_global.js && \
  33. grunt --gruntfile Gruntfile_app.js && \
  34. rmdir /var/www/html && \
  35. cp -r /tmp/frontend/build/release/ /var/www/html && \
  36. rm -rf /tmp/frontend
  37. COPY ./vars-vars /etc/vars-vars
  38. COPY ./vars-files /etc/vars-files
  39. COPY ./run.sh /run.sh
  40. EXPOSE 80
  41. CMD ["/run.sh"]