File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,10 @@ RUN ln -s /var/log/xdebug/xdebug.log /var/www/log/ && \
3636# Install JRE (needed for some testing tools like sitespeed.io) and libs for PhantomJS.
3737RUN DEBIAN_FRONTEND=noninteractive apt-get -y install default-jre libfreetype6 libfontconfig
3838
39- # Install Node 4.4.x LTS (https://nodejs.org/) via NVM
40- USER ubuntu
41- RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash && \
42- cp -f ~/.nvm/nvm.sh ~/.nvm/nvm-tmp.sh && \
43- echo "nvm install 4.4; nvm alias default 4.4" >> ~/.nvm/nvm-tmp.sh && \
44- sh ~/.nvm/nvm-tmp.sh && \
45- rm ~/.nvm/nvm-tmp.sh
46- USER root
39+ # Install Node 4 LTS (https://nodejs.org/)
40+ RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
41+ RUN apt-get install -y nodejs
42+ RUN update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
4743
4844# Setup for Wraith
4945RUN DEBIAN_FRONTEND=noninteractive apt-get -y install imagemagick && \
@@ -62,7 +58,7 @@ RUN wget https://github.com/RustJason/xhprof/archive/php7.tar.gz && \
6258 phpize && \
6359 ./configure --with-php-config=/usr/bin/php-config7.0 && \
6460 make && \
65- sudo make install && \
61+ make install && \
6662 rm -Rf ../xhprof-php7
6763# Tests fail:
6864# make test && \
You can’t perform that action at this time.
0 commit comments