-RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections &&\
- echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main restricted universe" > /etc/apt/sources.list &&\
- echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main restricted universe" >> /etc/apt/sources.list &&\
- echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-security main restricted universe" >> /etc/apt/sources.list &&\
- apt-get update && apt-get -y install fping &&\
- sh -c "fping proxy && echo 'Acquire { Retries \"0\"; HTTP { Proxy \"http://proxy:3128\";}; };' > /etc/apt/apt.conf.d/40proxy && apt-get update || true" &&\
- apt-get -y install software-properties-common &&\
- apt-mark hold initscripts &&\
- apt-get -y upgrade &&\
- add-apt-repository -y ppa:rwky/redis &&\
- add-apt-repository -y ppa:nginx/development &&\
- apt-get install -y curl && curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add - &&\
- echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" | \
- tee /etc/apt/sources.list.d/postgres.list &&\
- curl -sL https://deb.nodesource.com/setup | sudo bash - &&\
- apt-get -y update &&\
- apt-get -y install build-essential git curl wget \
+ADD VERSION /VERSION
+
+RUN apt-get update && apt-get install -y lsb-release sudo curl
+RUN echo "debconf debconf/frontend select Teletype" | debconf-set-selections
+RUN echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main restricted universe" > /etc/apt/sources.list
+RUN echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-updates main restricted universe" >> /etc/apt/sources.list
+RUN echo "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc)-security main restricted universe" >> /etc/apt/sources.list
+RUN apt-get update && apt-get -y install fping
+RUN sh -c "fping proxy && echo 'Acquire { Retries \"0\"; HTTP { Proxy \"http://proxy:3128\";}; };' > /etc/apt/apt.conf.d/40proxy && apt-get update || true"
+RUN apt-get -y install software-properties-common
+RUN apt-mark hold initscripts
+RUN apt-get -y upgrade
+RUN curl http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | apt-key add -
+RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -sc)-pgdg main" | \
+ tee /etc/apt/sources.list.d/postgres.list
+RUN curl --silent --location https://deb.nodesource.com/setup_6.x | sudo bash -
+RUN apt-get -y update
+RUN apt-get -y install build-essential git wget \