Fix a bug that prevents yarn from installing
This commit is contained in:
parent
3f157a3277
commit
44045f85e6
@ -36,6 +36,8 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "2222:22"
|
- "2222:22"
|
||||||
tty: true
|
tty: true
|
||||||
|
environment:
|
||||||
|
- PATH=$PATH:$HOME/.yarn/bin:/var/www/vendor/bin:$HOME/.nvm/versions/node/v7.1.0/bin
|
||||||
|
|
||||||
### PHP-FPM Container #######################################
|
### PHP-FPM Container #######################################
|
||||||
|
|
||||||
|
@ -191,6 +191,7 @@ ARG INSTALL_YARN=false
|
|||||||
ENV INSTALL_YARN ${INSTALL_YARN}
|
ENV INSTALL_YARN ${INSTALL_YARN}
|
||||||
|
|
||||||
RUN if [ ${INSTALL_YARN} = true ]; then \
|
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 && \
|
curl -o- -L https://yarnpkg.com/install.sh | bash && \
|
||||||
echo "" >> ~/.bashrc && \
|
echo "" >> ~/.bashrc && \
|
||||||
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \
|
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \
|
||||||
|
Loading…
Reference in New Issue
Block a user