- npm install uglify-js -g &&\
- npm install svgo -g &&\
- apt-get -y install advancecomp jhead jpegoptim libjpeg-progs optipng
-
-# TODO check when binary packages are ready (not yet)
-RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2 &&\
- tar -xjf phantomjs-1.9.8-linux-x86_64.tar.bz2 &&\
- rm phantomjs-1.9.8-linux-x86_64.tar.bz2 &&\
- cp phantomjs-1.9.8-linux-x86_64/bin/phantomjs /bin/phantomjs &&\
- rm -fr phantomjs-1.9.8-linux-x86_64
-
-RUN mkdir /jemalloc && cd /jemalloc &&\
- wget http://www.canonware.com/download/jemalloc/jemalloc-3.6.0.tar.bz2 &&\
- tar -xjf jemalloc-3.6.0.tar.bz2 && cd jemalloc-3.6.0 && ./configure && make &&\
- mv lib/libjemalloc.so.1 /usr/lib && cd / && rm -rf /jemalloc
+ npm install -g uglify-js@"<3" &&\
+ npm install -g svgo &&\
+ npm install -g prettier
+
+ADD install-nginx /tmp/install-nginx
+RUN /tmp/install-nginx
+
+RUN apt-get -y install advancecomp jhead jpegoptim libjpeg-turbo-progs optipng
+
+RUN mkdir /jemalloc-stable && cd /jemalloc-stable &&\
+ wget https://github.com/jemalloc/jemalloc/releases/download/3.6.0/jemalloc-3.6.0.tar.bz2 &&\
+ tar -xjf jemalloc-3.6.0.tar.bz2 && cd jemalloc-3.6.0 && ./configure --prefix=/usr && make && make install &&\
+ cd / && rm -rf /jemalloc-stable
+
+RUN mkdir /jemalloc-new && cd /jemalloc-new &&\
+ wget https://github.com/jemalloc/jemalloc/releases/download/5.1.0/jemalloc-5.1.0.tar.bz2 &&\
+ tar -xjf jemalloc-5.1.0.tar.bz2 && cd jemalloc-5.1.0 && ./configure --prefix=/usr --with-install-suffix=5.1.0 && make build_lib && make install_lib &&\
+ cd / && rm -rf /jemalloc-new
+
+RUN echo 'gem: --no-document' >> /usr/local/etc/gemrc &&\
+ mkdir /src && cd /src && git clone https://github.com/sstephenson/ruby-build.git &&\
+ cd /src/ruby-build && ./install.sh &&\
+ cd / && rm -rf /src/ruby-build && (ruby-build 2.4.4 /usr/local)
+
+RUN gem update --system
+
+RUN gem install bundler --force &&\
+ rm -rf /usr/local/share/ri/2.4.4/system &&\
+ cd / && git clone https://github.com/discourse/pups.git