From 3653afc45fe95fc004e3e937dc8f699ec88ac2e1 Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Wed, 1 Aug 2018 11:23:44 -0500 Subject: [PATCH] prefer nodeenv by default --- Dockerfile | 7 +++++-- env/.bash_env | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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