Revert "Use NVM and the same version of Node+NPM as ./scripts/test.sh"

This reverts commit a0649d1f0a6ccf15bc1df5c7119bd6f29b777694.
This commit is contained in:
Kræn Hansen 2017-08-15 11:52:51 +02:00
parent cbdc534862
commit 8334bbd01e

View File

@ -30,6 +30,8 @@ RUN dpkg --add-architecture i386 && \
unzip \
wget \
zip && \
curl -sL https://deb.nodesource.com/setup_4.x | bash - && \
apt-get install -y nodejs && \
echo oracle-java6-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
apt-get update -qq && \
@ -37,21 +39,6 @@ RUN dpkg --add-architecture i386 && \
rm -rf /var/cache/oracle-jdk8-installer && \
apt-get clean
# Install NVM (based on https://stackoverflow.com/questions/25899912/install-nvm-in-docker)
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 6.5.0
# Install nvm with node and npm
RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash \
&& . $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/v$NODE_VERSION/bin:$PATH
ENV NPM_CONFIG_UNSAFE_PERM true
# Locales
@ -86,4 +73,4 @@ RUN cd /opt && \
./autogen.sh && ./configure && \
make && make install
RUN . $NVM_DIR/nvm.sh && nvm use default && npm install -g react-native-cli
RUN npm install -g react-native-cli