anchor.diff:          LIBS="-ldl -pthread" \
           OPENSSL_LIBS="-l:libssl.a -l:libcrypto.a" \
           LIBEV_LIBS="-l:libev.a" \
  -        JEMALLOC_LIBS="-l:libjemalloc.a" && \
  +        JEMALLOC_LIBS="-l:libjemalloc.a -lm" && \
       make -j$(nproc) && \
       strip examples/client examples/server && \
       cp examples/client examples/server /usr/local/bin && \
  
positive.code: FROM debian:10 as build
  
  RUN apt-get update && \
      apt-get install -y --no-install-recommends \
  
negative.code:     apt-get -y autoremove --purge && \
      rm -rf /var/log/*
  
  FROM gcr.io/distroless/cc-debian11:latest-amd64
  
  COPY --from=build /usr/local/bin/client /usr/local/bin/server /usr/local/bin/
  COPY --from=build /etc/mime.types /etc/
  