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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. FROM robinthoni/debian-multiarch: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_10.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 @angular/cli
  14. COPY ./SiteStatus/ /tmp/frontend
  15. RUN cd /tmp/frontend && \
  16. rm -rf node_modules dist && \
  17. npm install && \
  18. ng build && \
  19. mkdir -p /var/www/ && \
  20. cp -r /tmp/frontend/dist/SiteStatus/ /var/www/html && \
  21. rm -rf /tmp/frontend
  22. FROM robinthoni/debian-multiarch:jessie
  23. RUN apt-get update && apt-get -y install \
  24. apache2=2.4.* && \
  25. apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/
  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. /usr/sbin/a2enmod rewrite proxy_http proxy_wstunnel &&\
  32. rm -rf /var/www/html &&\
  33. mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
  34. chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
  35. COPY apache2.conf /etc/apache2/apache2.conf
  36. COPY ./vars-vars /etc/vars-vars
  37. COPY ./vars-files /etc/vars-files
  38. COPY ./run.sh /run.sh
  39. COPY --from=builder /var/www/html /var/www/html
  40. EXPOSE 80
  41. CMD ["/run.sh"]