From 202babe0396e83ee31ee668e06b032cd6bdd6562 Mon Sep 17 00:00:00 2001 From: zontreck Date: Sun, 9 Feb 2025 21:09:42 -0700 Subject: [PATCH] use the advice provided in NVM git repo --- bitcoin/explorer/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bitcoin/explorer/Dockerfile b/bitcoin/explorer/Dockerfile index d0f3777..c83baf2 100644 --- a/bitcoin/explorer/Dockerfile +++ b/bitcoin/explorer/Dockerfile @@ -3,10 +3,11 @@ FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild USER root WORKDIR /root -RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash -RUN source /root/.nvm/nvm.sh +ENV BASH_ENV /root/.bash_env +RUN touch "${BASH_ENV}" -RUN nvm install node && nvm install 20 +RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | PROFILE="${BASH_ENV}" bash +RUN echo node > /root/.nvmrc WORKDIR /app RUN git clone https://github.com/janoside/btc-rpc-explorer explorer