Skip to content

Commit c5d1116

Browse files
authored
Merge pull request laradock#418 from moxar/yarn
Fix a bug that prevents yarn from installing laradock#415
2 parents fc31a24 + 5594c53 commit c5d1116

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ services:
3636
ports:
3737
- "2222:22"
3838
tty: true
39+
environment:
40+
- PATH=$PATH:/home/laradock/.yarn/bin:/var/www/vendor/bin:/home/laradock/.nvm/versions/node/v7.1.0/bin
3941

4042
### PHP-FPM Container #######################################
4143

workspace/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ ARG INSTALL_YARN=false
191191
ENV INSTALL_YARN ${INSTALL_YARN}
192192

193193
RUN if [ ${INSTALL_YARN} = true ]; then \
194+
export PATH=$PATH:/home/laradock/.nvm/versions/node/v7.1.0/bin && \
194195
curl -o- -L https://yarnpkg.com/install.sh | bash && \
195196
echo "" >> ~/.bashrc && \
196197
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \

0 commit comments

Comments
 (0)