anchor.diff: +# node version dependent on meteor version
   FROM node:8.9.3
  -# node version dependent on meteor version
   
   # (even if copied as root you still need to change)
   # https://github.com/moby/moby/issues/6119
  
positive.code: COPY ./requirements.txt /requirements.txt
  COPY ./r_requirements.sh /r_requirements.sh
  
  # 1) add the R apt-source
  # 2) install python and R
  # 3) create paths and users
  # 4) change executable permissions
  RUN sh -c 'echo "deb http://cran.rstudio.com/bin/linux/debian jessie-cran3/" >> /etc/apt/sources.list' && \
      apt-key adv --keyserver hkp://keys.gnupg.net:80 --recv-key 6212B7B7931C4BB16280BA1306F90DE5381BA480 && \
      \
      apt-get update && \
      apt-get install -y python python-dev python-pip r-base r-base-dev bsdtar && \
      apt-get clean && \
      \
      npm install forever -g && \
      \
      mkdir -p /app/production && \
      mkdir -p /app/logs && \
  
negative.code:     mkdir /home/app/R_libs && \
      bash /r_requirements.sh && \
      \
      /usr/local/bin/pip3.6 install --user -r /requirements.txt
  
  USER root
  COPY ./compose/meteor/src/src.tar.gz /app/src.tar.gz
  