anchor.diff:          erlang-parsetools erlang-percept erlang-typer \
           python-mysqldb \
           imagemagick \
  +        libgd3 \
  +        libwebp5 \
       ' \
       && echo "deb http://packages.erlang-solutions.com/debian wheezy contrib" >> /etc/apt/sources.list \
       && apt-key adv \
  
positive.code:         libyaml-dev \
          libsqlite3-dev \
          erlang-src erlang-dev \
      ' \
      && requiredAptPackages=' \
          wget \
  
negative.code: ADD ./scripts $EJABBERD_HOME/scripts
  ADD https://raw.githubusercontent.com/rankenstein/ejabberd-auth-mysql/master/auth_mysql.py $EJABBERD_HOME/scripts/lib/auth_mysql.py
  RUN chmod a+rx $EJABBERD_HOME/scripts/lib/auth_mysql.py
  RUN chmod +x /usr/local/lib/eimp*/priv/bin/eimp
  
  # Add config templates
  ADD ./conf /opt/ejabberd/conf
  