anchor.diff:          && mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
   
   ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH
  -
  -ARG grafana_ver=4.6.3
  -
   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}
  
positive.code: FROM resin/rpi-raspbian:latest as builder
  
  RUN buildDeps='curl gcc g++ git libsqlite3-0 libfontconfig1 libicu52' \
  	&& set -x \
  	&& apt-get update && apt-get install -y $buildDeps \
  	&& rm -rf /var/lib/apt/lists/*
  
  ARG node_version=8.9.4
  ARG node_architecture=armv7l
  RUN curl 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 \
    | tar xzf - -C /usr/local --strip-components=1 --no-same-permissions --no-same-owner
  
  ENV GOROOT /usr/local/go
  
negative.code: RUN go run build.go setup
  RUN go run build.go build
  RUN $NPM install -g yarn
  RUN yarn install --pure-lockfile
  #RUN $NPM run watch
  #RUN $NPM run jest
  #RUN $NPM run karma
  RUN go run build.go pkg-deb
  RUN ls -l /go/src/github.com/grafana/grafana/dist
  
  FROM resin/rpi-raspbian:latest as runtime
  ARG grafana_ver=5.0.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 install -y libfontconfig \
   && dpkg -i /tmp/grafana.deb \
   && apt-get clean \
  