anchor.diff:      && pip3 install --no-cache-dir google-api-python-client \
       && : \
       && : clean up unneeded packages and files \
  -    && apk del .build-deps .glibc \
  -    && rm -f /etc/apk/keys/sgerrand.rsa.pub \
  +    && apk del .build-deps \
       && rm -f /usr/bin/bazel \
       && rm -rf /tmp/* /root/.cache
   
  
positive.code:     && cp -p libblas.a /usr/lib/ \
      && cp -p liblapack.a /usr/lib/ \
      && : \
      && : prepare for building TensorFlow. install glibc to build Bazel. \
      && : install numpy and wheel python module too \
      && cd /tmp \
      && : numpy requires xlocale.h but it is not provided by musl-libc so just copy it from locale.h \
      && $(cd /usr/include/ && ln -s locale.h xlocale.h) \
      && pip3 install --no-cache-dir numpy wheel \
      && curl -SLO https://github.com/sgerrand/alpine-pkg-glibc/releases/download/unreleased/glibc-${GLIBC_VERSION}.apk \
      && curl -SLo /etc/apk/keys/sgerrand.rsa.pub https://github.com/sgerrand/alpine-pkg-glibc/releases/download/unreleased/sgerrand.rsa.pub \
      && apk add --no-cache --virtual=.glibc glibc-${GLIBC_VERSION}.apk \
      && : \
      && : install Bazel to build TensorFlow \
      && curl -SL https://github.com/bazelbuild/bazel/archive/${BAZEL_VERSION}.tar.gz \
          | tar xzf - \
      && cd bazel-${BAZEL_VERSION} \
      && : add -fpermissive compiler option to avoid compilation failure \
      && sed -i -e '/"-std=c++0x"/{h;x;s//"-fpermissive"/;x;G}' tools/cpp/cc_configure.bzl \
      && bash compile.sh \
      && cp -p output/bazel /usr/bin/ \
      && : \
  
negative.code: ENV LOCAL_RESOURCES 2048,.8,1.0
  
  ENV GLIBC_VERSION 2.23-r3
  ENV BAZEL_VERSION 0.4.3
  ENV LAPACK_VERSION 3.6.1
  ENV TENSORFLOW_VERSION 0.11.0
  
  