anchor.diff:  CMD ["/sbin/my_init"]
   
   # Install Plex
  -RUN apt-get -q update
  -RUN apt-get install -qy gdebi-core wget
  -RUN wget -P /tmp http://downloads.plexapp.com/plex-media-server/0.9.9.14.531-7eef8c6/plexmediaserver_0.9.9.14.531-7eef8c6_amd64.deb
  -RUN gdebi -n /tmp/plexmediaserver_0.9.9.14.531-7eef8c6_amd64.deb
  -RUN echo 0.9.9.14.531-7eef8c6_amd64.deb | awk -F_ '{print $2}' > /tmp/version
  -RUN rm -f /tmp/plexmediaserver_0.9.9.14.531-7eef8c6_amd64.deb
  +RUN apt-get -q update && \
  +apt-get install -qy gdebi-core wget && \
  +wget -P /tmp http://downloads.plexapp.com/plex-media-server/0.9.9.14.531-7eef8c6/plexmediaserver_0.9.9.14.531-7eef8c6_amd64.deb && \
  +gdebi -n /tmp/plexmediaserver_0.9.9.14.531-7eef8c6_amd64.deb && \
  +rm -f /tmp/plexmediaserver_0.9.9.14.531-7eef8c6_amd64.deb && \
  +apt-get clean && \
  +rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
   
   #Userfix
  -RUN usermod -u 999 plex
  -RUN groupmod -g 999 plex
  +RUN usermod -u 996 plex && \
  +groupmod -g 996 plex
   
   #Mappings and ports
   VOLUME /config
  
positive.code: ADD plexmediaserver /etc/default/plexmediaserver
  
  #Adding Custom files
  RUN mkdir -p /etc/service/plex
  RUN mkdir -p /etc/service/dbus
  RUN mkdir -p /etc/service/avahi
  ADD plex.run /etc/service/plex/run
  ADD dbus.run /etc/service/dbus/run
  ADD avahi.run /etc/service/avahi/run
  ADD dbus.init /etc/my_init.d/10_dbus.sh
  ADD updatePlex.init /etc/my_init.d/20_updatePlex.sh
  RUN chmod +x /etc/service/plex/run
  RUN chmod +x /etc/service/avahi/run
  RUN chmod +x /etc/service/dbus/run
  RUN chmod +x /etc/my_init.d/10_dbus.sh
  RUN chmod +x /etc/my_init.d/20_updatePlex.sh
  
  
  #Cleanup
  RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
  
negative.code: FROM phusion/baseimage:0.9.15
  MAINTAINER Stian Larsen <lonixx@gmail.com>
  RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
  ENV DEBIAN_FRONTEND noninteractive
  