Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Dockerfile 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 proxy_wstunnel
  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. for gruntfile in Gruntfile_*; do grunt --gruntfile "${gruntfile}"; done && \
  33. rmdir /var/www/html && \
  34. cp -r /tmp/frontend/build/release/ /var/www/html && \
  35. rm -rf /tmp/frontend
  36. COPY ./vars-vars /etc/vars-vars
  37. COPY ./vars-files /etc/vars-files
  38. COPY ./run.sh /run.sh
  39. EXPOSE 80
  40. CMD ["/run.sh"]