anchor.diff:      cmake \
       util-linux-dev
   
  -# Build Xapiand using clang (from Kronuz git repo using layer cache buster)
  +# Build Xapiand (from Kronuz git repo using layer cache buster)
   ADD https://api.github.com/repos/Kronuz/Xapiand/git/refs/heads/master xapiand-version.json
   RUN CONFIG="\
       -DCMAKE_INSTALL_PREFIX:PATH=/usr \
  
positive.code:   && ninja install
  
  RUN rm -rf /usr/src/Xapiand \
    && apk del .build-deps \
    && apk del build-clang
  
  # Xapiand image
  FROM alpine:3.8
  
  MAINTAINER Kronuz
  
  COPY --from=builder /usr /usr
  COPY ./entrypoint.sh /
  
  RUN apk add libuuid \
    && mkdir -p /var/db \
    && addgroup -S xapiand \
    && adduser -D -S -h /var/db/xapiand -s /sbin/nologin -G xapiand xapiand \
  
negative.code: # docker push dubalu/xapiand:$(docker run --rm dubalu/xapiand:latest --version)
  # docker push dubalu/xapiand:latest
  
  FROM alpine:3.9 as builder
  
  RUN set -ex \
    && apk add icu libuuid \
    && apk add --no-cache --virtual .build-deps \
      git \
      gcc \
      zlib-dev \
      # Xapian specific:
      icu-dev \
      perl \
      tcl \
      # Xapiand specific:
  