anchor.diff:  ENV DEBIAN_FRONTEND noninteractive
   
   # instalacja i konfiguracja Ruby
  -RUN apt-get install -y \
  +RUN apt-get update && apt-get install -y \
     git make gcc g++ nodejs npm openssl libssl-dev curl libpq-dev \
     cron libreadline-dev imagemagick wget nano htop sudo apt-utils libjpeg-dev libpng-dev
   RUN ln -s /usr/bin/nodejs /usr/bin/node
  
positive.code: 
  # Instalacja Nginx + Passenger
  RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 561F9B9CAC40B2F7 && \
   apt-get install -y apt-transport-https ca-certificates && \
   echo "deb https://oss-binaries.phusionpassenger.com/apt/passenger xenial main" > /etc/apt/sources.list.d/passenger.list && \
   chown root: /etc/apt/sources.list.d/passenger.list && \
   chmod 600 /etc/apt/sources.list.d/passenger.list && \
  
negative.code: RUN su - webapp -c "rbenv rehash"
  
  # SSH dla Capistrano
  RUN apt-get update && apt-get install -y openssh-server
  RUN su - webapp -c "mkdir -p /home/webapp/.ssh"
  COPY ./authorized_keys /home/webapp/.ssh/
  RUN chown webapp:webapp /home/webapp/.ssh/authorized_keys && chmod 600 /home/webapp/.ssh/authorized_keys
  