anchor.diff:      libgflags-dev
   
   # get LedisDB
  -RUN wget -O ledisdb-src.tar.gz "https://github.com/siddontang/ledisdb/archive/$LEDISDB_VERSION.tar.gz" && \
  +RUN wget -O ledisdb-src.tar.gz "https://github.com/siddontang/ledisdb/archive/v$LEDISDB_VERSION.tar.gz" && \
       tar -zxf ledisdb-src.tar.gz && \
       mkdir -p /go/src/github.com/siddontang/ && \
       mv ledisdb-$LEDISDB_VERSION /go/src/github.com/siddontang/ledisdb
  
positive.code:     tar -zxf leveldb-src.tar.gz && \
      cd leveldb-$LEVELDB_VERSION && \
      patch -p0 < /go/src/github.com/siddontang/ledisdb/tools/leveldb.patch && \
      make -j "$(nproc)" && \
      mkdir /build/lib && \
      mkdir -p /build/include/leveldb && \
  
negative.code: # use builder image to compile ledisdb (without GCO)
  FROM golang:1.9-stretch as builder
  
  ENV LEDISDB_VERSION 0.6
  
  ENV LEVELDB_VERSION 47cb9e2a211e1d7157078ba7bab536beb29e56dc
  ENV ROCKSDB_VERSION 5.8.6
  