anchor.diff:      pkg-config \
       libsystemd-dev \
       zlib1g-dev \
  +    libpq-dev \
  +    postgresql-server-dev-all \
       flex \
  -    bison 
  +    bison
   
   RUN mkdir -p /fluent-bit/bin /fluent-bit/etc /fluent-bit/log /tmp/src/
   COPY . /tmp/src/
  
positive.code: COPY --from=builder /lib/x86_64-linux-gnu/libpcre.so* /lib/x86_64-linux-gnu/
  COPY --from=builder /lib/x86_64-linux-gnu/libgpg-error.so* /lib/x86_64-linux-gnu/
  
  COPY --from=builder /fluent-bit /fluent-bit
  
  #
  
negative.code:           -DFLB_EXAMPLES=Off \
            -DFLB_HTTP_SERVER=On \
            -DFLB_IN_SYSTEMD=On \
            -DFLB_OUT_KAFKA=On \
            -DFLB_OUT_PGSQL=On ../
  
  RUN make -j $(getconf _NPROCESSORS_ONLN)
  RUN install bin/fluent-bit /fluent-bit/bin/
  