Skip to content

Commit b0539f6

Browse files
committed
Merge branch 'develop'
2 parents 64320ac + fcee471 commit b0539f6

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff 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.
3737
RUN 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
4945
RUN 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 && \

0 commit comments

Comments
 (0)