anchor.diff:      rm -rf /var/cache/apk/* && \
       rm -rf /tmp/* && \
   
  -    rm -r /root/.cache && \
  +    # rm -r /root/.cache && \
       find /usr/lib/python3.*/ -name 'tests' -exec rm -r '{}' + && \
       find /usr/lib/python3.*/site-packages/ -name '*.so' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \; \
           && \
  
positive.code:     # RUN make $MAKE_JOBS install
  
      # Bazel download and install
      cd /tmp && \
      wget https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-dist.zip && \
      mkdir bazel-${BAZEL_VERSION} && \
      unzip -qd bazel-${BAZEL_VERSION} bazel-${BAZEL_VERSION}-dist.zip && \
      cd /tmp/bazel-${BAZEL_VERSION} && \
      sed -i -e 's/-classpath/-J-Xmx8192m -J-Xms128m -classpath/g' scripts/bootstrap/compile.sh && \
      bash compile.sh && \
      cp -p output/bazel /usr/bin/ && \
  
      # Tensorflow with Intel MKL-DNN for AWS EC2 M5 instnace with Xeon Skylake SP processor (support AVX-512)
      cd /tmp && \
      wget -O tensorflow-${TENSORFLOW_VERSION}.tar.gz https://github.com/tensorflow/tensorflow/archive/v${TENSORFLOW_VERSION}.tar.gz && \
      tar xzf tensorflow-${TENSORFLOW_VERSION}.tar.gz && \
      cd /tmp/tensorflow-${TENSORFLOW_VERSION} && \
      ./configure && \
      bazel build --config=mkl --config=opt --copt=-march="skylake-avx512" \
      # bazel build --config=mkl --config=opt --copt=-march="skylake" \
          --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0" \
          --local_ram_resources=2048 \
          //tensorflow/tools/pip_package:build_pip_package && \
      ./bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_pkgs && \
  
  
negative.code: # Based on https://github.com/frol/docker-alpine-python-machinelearning
  # FROM guitarmind/python-nginx
  # FROM guitarmind/python-ml
  FROM pump-dl-dev
  MAINTAINER markpeng@exosite.com
  
  ENV JAVA_HOME=/usr/lib/jvm/java-1.8-openjdk \
      BAZEL_VERSION=0.15.0 \
      TENSORFLOW_VERSION=1.12.0 \
      LOCAL_RESOURCES=2048,4,1.0
  
  RUN apk update && \
      apk add --no-cache \
  