Skip to content
Snippets Groups Projects
Commit 29982dcc authored by Suru Dissanaike's avatar Suru Dissanaike
Browse files

Clean-up nvm

parent b0052616
Branches
Tags
No related merge requests found
...@@ -69,20 +69,20 @@ RUN \ ...@@ -69,20 +69,20 @@ RUN \
# Remove cached packages. # Remove cached packages.
RUN rm -rf /var/lib/apt/lists/* RUN rm -rf /var/lib/apt/lists/*
RUN mkdir /opt/dev RUN mkdir /opt/dev
RUN mkdir /etc/config RUN mkdir /etc/config
# install node # install node
ENV NODE_VERSION=14.16.1 ARG NODE_VERSION=14.16.1
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
ENV NVM_DIR=/root/.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="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}"
RUN node --version ENV NVM_DIR=/root/.nvm
RUN npm --version
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash && \
. "$NVM_DIR/nvm.sh" && \
nvm install ${NODE_VERSION} && \
nvm use v${NODE_VERSION} && \
nvm alias default v${NODE_VERSION} && \
npm install --global typescript yarn
# install tap-junit # install tap-junit
RUN npm i -g tap-junit RUN npm i -g tap-junit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment