Skip to content

Commit 5e9ae56

Browse files
authored
Merge pull request laradock#419 from laradock/yarn
Revert laradock#418 and fix install yarn package management.
2 parents c5d1116 + 5d98e78 commit 5e9ae56

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ 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
4139

4240
### PHP-FPM Container #######################################
4341

workspace/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +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 && \
194+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && \
195195
curl -o- -L https://yarnpkg.com/install.sh | bash && \
196196
echo "" >> ~/.bashrc && \
197197
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \

0 commit comments

Comments
 (0)