anchor.diff: -FROM h2non/imaginary:build as builder
  +ARG GOLANG="1.11.4"
  +FROM golang:$GOLANG as builder
   
   ARG IMAGINARY_VERSION="dev"
  +ARG LIBVIPS_VERSION="8.7.4"
   
  -ENV GOPATH /go
  -ENV PATH ${GOPATH}/bin:/usr/local/go/bin:${PATH}
  +# Installs libvips + required libraries
  +RUN DEBIAN_FRONTEND=noninteractive \
  +  apt-get update && \
  +  apt-get install -y \
  +  ca-certificates \
  +  automake build-essential curl \
  +  gobject-introspection gtk-doc-tools libglib2.0-dev libjpeg62-turbo-dev libpng-dev \
  +  libwebp-dev libtiff5-dev libgif-dev libexif-dev libxml2-dev libpoppler-glib-dev \
  +  swig libmagickwand-dev libpango1.0-dev libmatio-dev libopenslide-dev libcfitsio-dev \
  +  libgsf-1-dev fftw3-dev liborc-0.4-dev librsvg2-dev && \
  +  cd /tmp && \
  +  curl -fsSLO https://github.com/libvips/libvips/releases/download/v${LIBVIPS_VERSION}/vips-${LIBVIPS_VERSION}.tar.gz && \
  +  tar zvxf vips-${LIBVIPS_VERSION}.tar.gz && \
  +  cd /tmp/vips-${LIBVIPS_VERSION} && \
  +	CFLAGS="-g -O3" CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -g -O3" \
  +    ./configure \
  +    --disable-debug \
  +    --disable-dependency-tracking \
  +    --disable-introspection \
  +    --disable-static \
  +    --enable-gtk-doc-html=no \
  +    --enable-gtk-doc=no \
  +    --enable-pyvips8=no && \
  +  make && \
  +  make install && \
  +  ldconfig && \
  +  GO111MODULE=off go get -u github.com/golang/dep/cmd/dep
   
   # Installing gometalinter
   WORKDIR /tmp
  
positive.code: RUN rm -rf vendor && dep ensure
  
  # Run quality control
  RUN go test -test.v ./...
  RUN gometalinter github.com/h2non/imaginary
  
  # Compile imaginary
  RUN go build -a \
      -o $GOPATH/bin/imaginary \
      -ldflags="-h -X main.Version=${IMAGINARY_VERSION}" \
      github.com/h2non/imaginary
  
  FROM ubuntu:16.04
  
  ARG IMAGINARY_VERSION
  
  
negative.code: COPY --from=builder /etc/ssl/certs /etc/ssl/certs
  
  # Install runtime dependencies
  RUN DEBIAN_FRONTEND=noninteractive \
    apt-get update && \
    apt-get install --no-install-recommends -y \
    libglib2.0-0 libjpeg62-turbo libpng16-16 libopenexr22 \
    libwebp6 libwebpmux2 libtiff5 libgif7 libexif12 libxml2 libpoppler-glib8 \
    libmagickwand-6.q16-3 libpango1.0-0 libmatio4 libopenslide0 \
    libgsf-1-114 fftw3 liborc-0.4 librsvg2-2 libcfitsio5 && \
    apt-get autoremove -y && \
    apt-get autoclean && \
    apt-get clean && \
  