anchor.diff:      pip install tornado==5.1.1 && \
       python3 -m ipykernel.kernelspec && \
       pip install tensorboard && \
  +    pip install jep && \
  +    pip install cloudpickle && \
       pip install opencv-python && \
       pip install pyyaml && \
       pip install redis && \
  
positive.code: RUN chmod a+x /opt/work/cluster-serving/*
  
  
  ENV OMP_NUM_THREADS     all
  
  RUN sed -i "s/jobmanager\.heap\.size:.*/jobmanager\.heap\.size: 8g/g" $FLINK_HOME/conf/flink-conf.yaml && \
      sed -i "s/taskmanager\.memory\.process\.size:.*/taskmanager\.memory\.process\.size: 8g/g" $FLINK_HOME/conf/flink-conf.yaml
  
  
negative.code:     echo "auth required pam_wheel.so use_uid" >> /etc/pam.d/su && \
      chgrp root /etc/passwd && chmod ug+rw /etc/passwd
  
  #conda
  RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.8.3-Linux-x86_64.sh && \
      mkdir /root/.conda && \
      bash Miniconda3-py37_4.8.3-Linux-x86_64.sh -b && \
      rm -f Miniconda3-py37_4.8.3-Linux-x86_64.sh && \
  #java
      wget https://enos.itcollege.ee/~jpoial/allalaadimised/jdk8/jdk-8u261-linux-x64.tar.gz  && \
      gunzip jdk-8u261-linux-x64.tar.gz && \
      tar -xf jdk-8u261-linux-x64.tar -C /opt && \
      rm jdk-8u261-linux-x64.tar && \
      ln -s /opt/jdk1.8.0_261 /opt/jdk && \
  #spark
      wget https://archive.apache.org/dist/spark/spark-${SPARK_VERSION}/spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
      tar -zxvf spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
      mv spark-${SPARK_VERSION}-bin-hadoop2.7 /opt/spark && \
      rm spark-${SPARK_VERSION}-bin-hadoop2.7.tgz && \
  