From f3abba24ab61c43a38f43712707e7f306f62b457 Mon Sep 17 00:00:00 2001 From: Simone Date: Sun, 14 Jan 2024 19:41:05 +0100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2083219..c140a09 100644 --- a/Dockerfile +++ b/Dockerfile @@ -96,9 +96,8 @@ USER runner ENV NODE_VERSION=20.11.0 RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash ENV NVM_DIR=/runner/.nvm -RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} -RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} -RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} -ENV PATH="/runner/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" +RUN source ~/.bashrc && nvm install ${NODE_VERSION} +RUN nvm use v${NODE_VERSION} +RUN nvm alias default v${NODE_VERSION} RUN node --version RUN npm --version