Commit c5d11163 authored by Mahmoud Zalt's avatar Mahmoud Zalt Committed by GitHub

Merge pull request #418 from moxar/yarn

Fix a bug that prevents yarn from installing #415
parents fc31a241 5594c53e
......@@ -36,6 +36,8 @@ services:
ports:
- "2222:22"
tty: true
environment:
- PATH=$PATH:/home/laradock/.yarn/bin:/var/www/vendor/bin:/home/laradock/.nvm/versions/node/v7.1.0/bin
### PHP-FPM Container #######################################
......
......@@ -191,6 +191,7 @@ ARG INSTALL_YARN=false
ENV INSTALL_YARN ${INSTALL_YARN}
RUN if [ ${INSTALL_YARN} = true ]; then \
export PATH=$PATH:/home/laradock/.nvm/versions/node/v7.1.0/bin && \
curl -o- -L https://yarnpkg.com/install.sh | bash && \
echo "" >> ~/.bashrc && \
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment