Use locally installed grunt and bower in Docker image

This commit is contained in:
Pierre Rudloff 2017-03-29 21:42:48 +02:00
parent 30cd469c58
commit 23906c7e84

View file

@ -5,12 +5,11 @@ RUN apt-get install -y libicu-dev xz-utils git zlib1g-dev python nodejs
RUN docker-php-ext-install mbstring
RUN docker-php-ext-install intl
RUN docker-php-ext-install zip
RUN npm install -g bower grunt-cli
RUN a2enmod rewrite
RUN curl -sS https://getcomposer.org/installer | php
COPY php.ini /usr/local/etc/php/
COPY . /var/www/html/
RUN php composer.phar install --prefer-dist
RUN npm install
RUN bower --allow-root install
RUN grunt
RUN ./node_modules/.bin/bower --allow-root install
RUN ./node_modules/.bin/grunt