anchor.diff:      pip install --no-cache-dir opencv-python && \
       pip install --no-cache-dir pyyaml && \
       pip install --no-cache-dir redis && \
  -    pip install --no-cache-dir keras && \
  -    pip install --no-cache-dir mxnet-mkl==1.6.0 && \
  -    pip install --no-cache-dir ray==1.2.0 && \
  +    pip install --no-cache-dir ray[tune]==1.2.0 && \
       pip install --no-cache-dir Pillow==6.1 && \
       pip install --no-cache-dir psutil aiohttp && \
       pip install --no-cache-dir py4j && \
  -    pip install --no-cache-dir gym gym[atari] && \
  -    pip install --no-cache-dir lz4 && \
  -    pip install --no-cache-dir ray[rllib] && \
       pip install --no-cache-dir cmake==3.16.3 && \
  -    pip install --no-cache-dir horovod==0.19.2 && \
  -    pip install --no-cache-dir tf_slim && \
  -    git clone https://github.com/tensorflow/models/ /opt/models 
  -
  -ADD ./start-notebook-spark.sh /opt
  -ADD ./start-notebook-k8s.sh /opt
  -
  -RUN chmod a+x /opt/start-notebook-spark.sh && \
  +# chmod
  +    chmod a+x /opt/start-notebook-spark.sh && \
       chmod a+x /opt/start-notebook-k8s.sh && \
       chmod +x /sbin/tini
   
  
positive.code:     mv /opt/analytics-zoo-examples/python/zoo/examples/* /opt/analytics-zoo-examples/python && \
      rm -rf /opt/analytics-zoo-examples/python/zoo/examples
  
  # stage.3 redis
  FROM ubuntu:18.04 as redisenv
  #redis
  RUN apt-get update --fix-missing && \
      apt-get install -y apt-utils wget && \
      apt-get install -y gcc g++ make
  RUN wget http://download.redis.io/releases/redis-5.0.5.tar.gz && \
      tar xzf redis-5.0.5.tar.gz -C /opt && \
      rm redis-5.0.5.tar.gz && \
      cd /opt/redis-5.0.5 && \
      make && \
      echo "bind 0.0.0.0" >> /opt/redis-5.0.5/redis.conf && \
      cd ..
  
  # stage.4 
  FROM ubuntu:18.04
  MAINTAINER The Analytics-Zoo Authors https://github.com/intel-analytics/analytics-zoo
  ARG ANALYTICS_ZOO_VERSION
  
negative.code: ENV PATH                                ${ANALYTICS_ZOO_HOME}/bin/cluster-serving:${JAVA_HOME}/bin:/root/miniconda3/bin:${PATH}
  ENV TINI_VERSION                        ${TINI_VERSION}
  
  COPY --from=copies-layer /opt /opt
  COPY --from=spark /sbin/tini /sbin/tini
  ADD ./start-notebook-spark.sh /opt
  ADD ./start-notebook-k8s.sh /opt
  
  RUN mkdir -p /opt/analytics-zoo-examples/python && \
      mkdir -p /opt/analytics-zoo-examples/scala && \
      apt-get update --fix-missing && \
      apt-get install -y apt-utils vim curl nano wget unzip maven git && \
      apt-get install -y gcc g++ make && \
      apt-get install -y libsm6 libxext6 libxrender-dev && \
      rm /bin/sh && \
      ln -sv /bin/bash /bin/sh && \
      echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su && \
      chgrp root /etc/passwd && chmod ug+rw /etc/passwd && \
  # python
      apt-get install -y python3-minimal && \
      apt-get install -y build-essential python3 python3-setuptools python3-dev python3-pip && \
      pip3 install --no-cache-dir --upgrade pip && \
      pip install --no-cache-dir --upgrade setuptools && \
      pip install --no-cache-dir numpy==1.18.1 scipy && \
      pip install --no-cache-dir pandas==1.0.3 && \
      pip install --no-cache-dir scikit-learn matplotlib seaborn jupyter jupyterlab requests h5py tensorflow==1.15.0 && \
      ln -s /usr/bin/python3 /usr/bin/python && \
      #Fix tornado await process
      pip uninstall -y -q tornado && \
  