anchor.diff: +ARG node_version=9.8.0
  +ARG node_architecture=armv7l
  +
   FROM resin/rpi-raspbian:latest as builder
   
  -RUN buildDeps='curl gcc g++ git libsqlite3-0 libfontconfig1 libicu52' \
  +RUN buildDeps='curl gcc g++ git libsqlite3-0 libfontconfig1 libicu52 python2.7 make ruby ruby-dev adduser' \
   	&& set -x \
   	&& apt-get update && apt-get install -y $buildDeps \
  +        && ln -s /usr/bin/python2.7 /usr/bin/python2 \
  +        && gem install fpm \
   	&& rm -rf /var/lib/apt/lists/*
   
  -ARG node_version=8.9.4
  +ARG node_version=9.8.0
   ARG node_architecture=armv7l
  -RUN curl https://nodejs.org/dist/v${node_version}/node-v${node_version}-linux-${node_architecture}.tar.xz \
  +RUN set -x \
  + && curl -Lk https://nodejs.org/dist/v${node_version}/node-v${node_version}-linux-${node_architecture}.tar.xz \
     | tar -xJvf - --strip-components=1 -C /usr/local/
   
  -RUN curl https://raw.githubusercontent.com/timstanley1985/phantomjs-linux-armv6l/master/phantomjs-2.1.1-linux-armv6l.tar.gz \
  +RUN curl -Lk https://raw.githubusercontent.com/timstanley1985/phantomjs-linux-armv6l/master/phantomjs-2.1.1-linux-armv6l.tar.gz \
     | tar xzf - -C /usr/local --strip-components=1 --no-same-permissions --no-same-owner
   
   ENV GOROOT /usr/local/go
  
positive.code: RUN go run build.go setup
  RUN go run build.go build
  RUN $NPM install -g yarn
  
  RUN apt-get update && apt-get install -y python2.7-minimal
  RUN apt-get install -y python2.7
  RUN apt-get install -y make
  RUN ln -s /usr/bin/python2.7 /usr/bin/python2
  RUN yarn install --pure-lockfile
  RUN apt-get install -y ruby ruby-dev adduser
  RUN gem install fpm
  #RUN $NPM run watch
  #RUN $NPM run jest
  #RUN $NPM run karma
  RUN go run build.go pkg-deb
  
  FROM resin/rpi-raspbian:latest
  ARG grafana_ver=4.6.3
  COPY --from=builder /go/src/github.com/grafana/grafana/dist/grafana_${grafana_ver}-*_armhf.deb /tmp/grafana.deb
  RUN apt-get update \
   && apt-get upgrade -y \
   && apt-get install -y libfontconfig \
   && dpkg -i /tmp/grafana.deb \
   && apt-get clean \
  
negative.code:         && mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
  
  ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
  ENV NODE=/usr/local/bin/node
  ENV NPM=/usr/local/bin/npm
  
  WORKDIR $GOPATH
  
  ARG grafana_ver=5.0.3
  RUN go get -d github.com/grafana/grafana \
   || cd $GOPATH/src/github.com/grafana/grafana \
   && git checkout v${grafana_ver}
  