diff --git a/workspace/Dockerfile b/workspace/Dockerfile index c63f90b..67d1407 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -150,7 +150,7 @@ ENV NVM_DIR /home/laradock/.nvm RUN if [ ${INSTALL_NODE} = true ]; then \ # Install nvm (A Node Version Manager) curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.6/install.sh | bash && \ - . ~/.nvm/nvm.sh && \ + . $NVM_DIR/nvm.sh && \ nvm install ${NODE_VERSION} && \ nvm use ${NODE_VERSION} && \ nvm alias ${NODE_VERSION} && \