anchor.diff:  ADD services.d /etc/services.d
   
   
  -# Install external znc-modules
  -RUN wget -O /tmp/znc-modules.tar.gz https://dl.bintray.com/dreamcat4/linux/znc-modules/znc-modules-latest_linux-x86_64.tar.gz \
  - && tar zxf /tmp/znc-modules.tar.gz -C /usr/lib/znc/ --skip-old-files && $_clean
  -
  -# Install atheme
  -RUN wget -O /tmp/atheme.tar.gz https://dl.bintray.com/dreamcat4/linux/atheme/atheme-latest_linux-x86_64.tar.gz \
  - && tar zxf /tmp/atheme.tar.gz -C / --skip-old-files && $_clean
  +# let irssi user sudo without password
  +RUN echo "irssi ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
   
   
   # Default container settings
  
positive.code: RUN tar -zxf /tmp/pipework-master.tar.gz -C /tmp && cp /tmp/pipework-master/pipework /sbin/ && $_clean
  
  
  # Install bitlbee, znc, irssi, tmux, sshd and other supportive pkgs
  RUN apt-get update -qqy && DEBIAN_FRONTEND=noninteractive apt-get install -y wget apt-transport-https ca-certificates \
   && wget -O- https://code.bitlbee.org/debian/release.key | apt-key add - \
   && echo "deb http://code.bitlbee.org/debian/master/wily/amd64/ ./" >> /etc/apt/sources.list \
   && wget -O- https://jgeboski.github.io/obs.key | apt-key add - \
   && echo "deb http://download.opensuse.org/repositories/home:/jgeboski/xUbuntu_15.10 ./" >> /etc/apt/sources.list \
  
negative.code:   ; done \
   && $_apt_clean
  
  RUN mkdir -p limnoria-plugins \
   && git clone https://github.com/ProgVal/Supybot-plugins limnoria-plugins/progval \
   && git clone https://github.com/GLolol/SupyPlugins limnoria-plugins/glolol
  
  RUN echo Checking limnoria was installed && ls -lsa /usr/local/bin/supybot
  
  # Setup limnoria user
  RUN groupadd -o -g 1135 limnoria \
   && useradd -o -u 1135 -g limnoria --shell /bin/bash -d /config/limnoria limnoria \
   && install -o limnoria -g limnoria -d /config/limnoria
  
  
  
  # Install irssi
  RUN apt-get update -qqy && DEBIAN_FRONTEND=noninteractive apt-get install -y \
      libtime-duration-perl libwww-perl libnotify-bin libmime-base64-urlsafe-perl \
      irssi make cpanminus irssi-scripts irssi-plugin-otr irssi-plugin-xmpp \
   && cpanm WebService::HipChat Algorithm::Diff \
   && $_apt_clean
  
  # For irssi / adv_windowlist.pl:
   # && cpanm Text::CharWidth \
  
  # Irssi - Download scripts and themes
  RUN git clone https://github.com/irssi/scripts.irssi.org.git \
   && git clone https://github.com/irssi-import/themes.git \
   && git clone https://github.com/huyz/irssi-colors-solarized
  
  # Setup irssi user
  RUN groupadd -o -g 22 irssi \
   && useradd -o -u 22 -g irssi --shell /bin/bash -d /config/irssi irssi \
   && install -o irssi -g irssi -d /config/irssi
  
  
  
  # Install weechat
  RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys D1820DB22A11534E \
   && echo "deb https://weechat.org/ubuntu wily main" >> /etc/apt/sources.list \
   \
   && apt-get update -qqy && DEBIAN_FRONTEND=noninteractive apt-get install -y \
      weechat weechat-plugins \
   \
   && $_apt_clean
  
  # Setup weechat user
  RUN groupadd -o -g 22 weechat \
   && useradd -o -u 22 -g weechat --shell /bin/bash -d /config/weechat weechat \
   && install -o weechat -g weechat -d /config/weechat
  
  
  
  # Install tmux, sshd and other supportive pkgs
  RUN apt-get update -qqy && DEBIAN_FRONTEND=noninteractive apt-get install -y \
      tmux openssh-server socat nmap \
   && $_apt_clean
  
  
  # Set default TERM and EDITOR
  ENV TERM=linux TERMINFO=/etc/terminfo EDITOR=nano
  
  
  # Setup sshd for irssi
  ENV TERM="tmux-256color" tmux_socket="/tmp/tmux.irssi.sock" tmux_session="tmux" tmux_irc_clients="irssi weechat"
  RUN mkdir -p /var/run/sshd \
   && echo "\n\n\
  