diff --git a/Dockerfile b/Dockerfile index 4f9ec05..b38c831 100644 --- a/Dockerfile +++ b/Dockerfile @@ -110,12 +110,15 @@ RUN git clone --depth 1 \ && mkdir -p .bash_it/custom/themes/nodez \ && pip install --user nodeenv==${NODEENV_VERSION} \ && mkdir -p .local/nodeenv \ + && export PATH=${HOME}/.local/bin:$PATH \ + && nodeenv --prebuilt \ + --node ${NODE_VERSION} \ + .local/nodeenv/default \ && git clone --branch v${NVM_VERSION} \ --depth 1 \ https://github.com/creationix/nvm.git \ .nvm 2> /dev/null \ - && . .nvm/nvm.sh \ - && nvm install v${NODE_VERSION} \ + && . .local/nodeenv/default/bin/activate \ && npm install -g "npm@${NPM_VERSION}" \ && npm install -g "embark@${EMBARK_VERSION}" \ "ganache-cli@${GANACHE_VERSION}" \ diff --git a/env/.bash_env b/env/.bash_env index 85ad206..1f24db7 100644 --- a/env/.bash_env +++ b/env/.bash_env @@ -126,4 +126,4 @@ __versions_export () { } export -f __versions_export -nvm_load +nac default