Verified Commit 0ae88c6f authored by Noah Prail's avatar Noah Prail
Browse files

chore: Do not use NVM

parent bea75a75
Pipeline #21309 passed with stage
in 41 seconds
FROM openjdk:8-jdk
ENV NODE_VERSION 14.15.0
ENV NODE_VERSION 14
ENV NPM_VERSION 6.14.8
ENV NVM_DIR /usr/local/nvm
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN mkdir -p $NVM_DIR
RUN apt-get update && \
apt-get install --no-install-recommends -y apt-transport-https && \
curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
apt-get install --no-install-recommends -y nodejs && \
npm i -g npm@${NPM_VERSION} && \
node -v && npm -v && npx -v \
apt-get -y autoremove && \
apt-get -y autoclean && \
rm -rf /var/lib/apt/lists/*
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
RUN source $NVM_DIR/nvm.sh && \
nvm install ${NODE_VERSION} && \
nvm alias default ${NODE_VERSION} && \
nvm use default && \
node -v && npm -v && npx -v && nvm -v
CMD ["bash", "-l"]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment