anchor.diff:      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.3 copies layer
  +FROM ubuntu:18.04 as copies-layer
  +ARG ANALYTICS_ZOO_VERSION
   
  -# stage.4 
  +COPY --from=analytics-zoo /opt/analytics-zoo-${ANALYTICS_ZOO_VERSION} /opt/analytics-zoo-${ANALYTICS_ZOO_VERSION}
  +COPY --from=analytics-zoo /opt/analytics-zoo-examples/python /opt/analytics-zoo-examples/python
  +COPY --from=spark /opt/jdk /opt/jdk
  +COPY --from=spark /opt/spark /opt/spark
  +COPY --from=spark /opt/spark/kubernetes/dockerfiles/spark/entrypoint.sh /opt
  +
  +
  +# stage.4
   FROM ubuntu:18.04
   MAINTAINER The Analytics-Zoo Authors https://github.com/intel-analytics/analytics-zoo
   ARG ANALYTICS_ZOO_VERSION
  
positive.code:     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 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 a+x /opt/start-notebook-k8s.sh && \
      chmod +x /sbin/tini
  
  
negative.code: ARG BIGDL_VERSION
  ARG ANALYTICS_ZOO_VERSION
  
  ENV SPARK_VERSION               ${SPARK_VERSION}
  ENV BIGDL_VERSION               ${BIGDL_VERSION}
  ENV ANALYTICS_ZOO_VERSION               ${ANALYTICS_ZOO_VERSION}
  ENV ANALYTICS_ZOO_HOME                  /opt/analytics-zoo-${ANALYTICS_ZOO_VERSION}
  
  