anchor.diff:  RUN apt-get update
   RUN apt-get upgrade -y
   RUN apt-get install -y \
  -    supervisor \
       nodejs \
       npm \
       sudo \
       mongodb-org
   
  -# Setup Supervisord
  -RUN echo "[program:mongod]" >> /etc/supervisor/conf.d/main.conf
  -RUN echo "command=/usr/bin/mongod" >> /etc/supervisor/conf.d/main.conf
  -RUN echo "[group:app]" >> /etc/supervisor/conf.d/main.conf
  -RUN echo "programs=front" >> /etc/supervisor/conf.d/main.conf
  -RUN echo "[program:front]" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "command=node app.js" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "directory=/home/ubuntu/www/current/" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "user=nobody" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "autostart=true" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "autorestart=true" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "startretries=3" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "stdout_logfile=/home/ubuntu/www/logs/server.log" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "stdout_logfile_maxbytes=1MB" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "stdout_logfile_backups=10" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "stderr_logfile=/home/ubuntu/www/logs/error.log" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "stderr_logfile_maxbytes=1MB" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "stderr_logfile_backups=10" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "stopsignal=TERM" >> /etc/supervisor/conf.d/app.conf
  -RUN echo "environment=NODE_ENV='production'" >> /etc/supervisor/conf.d/app.conf
  -
  -RUN echo "if [ ! -d \"/app_link/coped\"]" >> /start.sh
  +RUN echo "if [ -d \"/app_link/run.sh\" ]; then"
  +RUN echo "  ./app_link/run.sh"
  +RUN echo "  rm -rf ./app_link/run.sh"
  +RUN echo "fi"
  +RUN echo "if [ ! -d \"/app_link/coped\" ]; then" >> /start.sh
   RUN echo "  if [ ! -d \"/app_link/public\" ]; then" >> /start.sh
   RUN echo "    mv /app/public /app_link" >> /start.sh
   RUN echo "    mkdir -p /app_link/uploads" >> /start.sh
  
positive.code: 
  VOLUME /app_link
  
  RUN npm install && mkdir -p uploads
  
  EXPOSE 80
  
  CMD ["/start.sh"]
negative.code: RUN echo "  fi" >> /start.sh
  RUN echo "  touch /app_link/coped" >> /start.sh
  RUN echo "fi" >> /start.sh
  RUN echo "rm -rf public"
  RUN echo "rm -rf uploads"
  RUN echo "ln -sf /app_link/public ." >> /start.sh
  RUN echo "ln -sf /app_link/uploads ." >> /start.sh
  RUN echo "mongod --noauth --fork --bind_ip 127.0.0.1 --nohttpinterface --dbpath /app_link/db --logpath db.log" >> /start.sh
  RUN echo "nodemon app.js" >> /start.sh
  RUN chmod +x /start.sh
  
  ADD . /app
  