Use yarn in Docker build
This commit is contained in:
parent
83c038ea46
commit
236738d194
1 changed files with 5 additions and 4 deletions
|
@ -1,7 +1,9 @@
|
||||||
FROM php:7.0-apache
|
FROM php:7.0-apache
|
||||||
RUN apt-get update
|
|
||||||
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
|
RUN curl -sL https://deb.nodesource.com/setup_6.x | bash -
|
||||||
RUN apt-get install -y libicu-dev xz-utils git zlib1g-dev python nodejs libgmp-dev gettext
|
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||||
|
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -y libicu-dev xz-utils git zlib1g-dev python nodejs libgmp-dev gettext yarn
|
||||||
RUN docker-php-ext-install mbstring
|
RUN docker-php-ext-install mbstring
|
||||||
RUN docker-php-ext-install intl
|
RUN docker-php-ext-install intl
|
||||||
RUN docker-php-ext-install zip
|
RUN docker-php-ext-install zip
|
||||||
|
@ -12,7 +14,6 @@ RUN curl -sS https://getcomposer.org/installer | php
|
||||||
COPY resources/php.ini /usr/local/etc/php/
|
COPY resources/php.ini /usr/local/etc/php/
|
||||||
COPY . /var/www/html/
|
COPY . /var/www/html/
|
||||||
RUN php composer.phar install --prefer-dist
|
RUN php composer.phar install --prefer-dist
|
||||||
RUN npm install
|
RUN yarn install
|
||||||
RUN ./node_modules/.bin/bower --allow-root install
|
|
||||||
RUN ./node_modules/.bin/grunt
|
RUN ./node_modules/.bin/grunt
|
||||||
ENV CONVERT=1
|
ENV CONVERT=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue