use the advice provided in NVM git repo

This commit is contained in:
zontreck 2025-02-09 21:09:42 -07:00
parent facd5a565f
commit 202babe039

View file

@ -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