diff --git a/Dockerfile b/Dockerfile index 835b569..2083219 100644 --- a/Dockerfile +++ b/Dockerfile @@ -95,10 +95,10 @@ USER runner # Install NodeJS and NPM 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=/root/.nvm +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="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" +ENV PATH="/runner/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" RUN node --version RUN npm --version