12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- FROM robinthoni/debian-multiarch:jessie
-
- # FROM https://github.com/ZHAJOR/Docker-Apache-2.4-Php-5.6-for-Laravel
- MAINTAINER Robin Thoni <robin@rthoni.com>
-
- RUN apt-get update && apt-get -y install \
- apache2=2.4.* \
- git \
- curl && \
- apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/ && \
- curl https://deb.nodesource.com/setup_7.x | bash && \
- ln -s /usr/bin/nodejs /usr/bin/node
-
- RUN apt-get update && apt-get -y install \
- nodejs && \
- apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/ && \
- curl https://www.npmjs.com/install.sh | sh
-
- RUN npm install -g bower && \
- npm install -g grunt
-
- RUN /usr/sbin/a2enmod rewrite &&\
- rm -rf /var/www/html &&\
- mkdir -p /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html &&\
- chown -R www-data:www-data /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/www/html
-
- RUN rm -rf /var/log/* &&\
- mkdir -p /var/log/apache2 &&\
- ln -s /dev/stderr /var/log/apache2/error.log &&\
- ln -s /dev/stdout /var/log/apache2/access.log &&\
- ln -s /dev/stdout /var/log/apache2/other_vhosts_access.log
-
- RUN a2enmod proxy_http proxy_wstunnel
-
- COPY apache2.conf /etc/apache2/apache2.conf
-
- COPY ./frontend/ /tmp/frontend
-
- RUN cd /tmp/frontend && \
- npm install && \
- bower --allow-root install && \
- for gruntfile in Gruntfile_*; do grunt --gruntfile "${gruntfile}"; done && \
- rmdir /var/www/html && \
- cp -r /tmp/frontend/build/release/ /var/www/html && \
- rm -rf /tmp/frontend
-
- COPY ./vars-vars /etc/vars-vars
-
- COPY ./vars-files /etc/vars-files
-
- COPY ./run.sh /run.sh
-
- EXPOSE 80
-
- CMD ["/run.sh"]
|