anchor.diff:          gdb \
           make \
           sudo \
  -        default-jdk \
           ant \
           git \
  -        curl \
  +        curl wget \
           python-pip \
           python-serial \
           uncrustify \
           netcat-openbsd \
           srecord \
  -        net-tools iproute2 iputils-ping \
  +        net-tools iproute2 iputils-ping iputils-tracepath \
           && \
       apt-get -qq clean && \
       rm -rf /var/lib/apt/lists/*
   
  -# Upgrade pip to latest version
  -# Install IoT-Lab cli-tools and ssh-cli-tools
  -RUN pip -q install --upgrade pip
  -RUN pip -q install setuptools && \
  -    pip install iotlabcli==2.5.4 && iotlabsshcli==0.2.3
   
   # Add a script that we will use to correct permissions after running certain commands
   ADD fix-permissions /usr/local/bin/
   
   # Set environment variables
  -ENV JAVA_HOME           /usr/lib/jvm/default-java
  +ENV USER                ${USER}
   ENV HOME                /home/${USER}
   ENV WORK                ${HOME}/work
  -ENV CONTIKI             /opt/contiki-ng
  -ENV COOJA               ${CONTIKI}/tools/cooja
  -ENV                     PATH="${HOME}:${PATH}"
   ENV                     TERM="xterm-color"
  -
   
   # Create user, enable X forwarding, add to group dialout
   # -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix
  
positive.code: # Set workdir and switch back to dev to avoid accidental container runs as root
  WORKDIR $WORK
  USER ${UID}
  
negative.code:     chmod 0440 /etc/sudoers && \
      chmod g+w /etc/passwd && \
      usermod -aG dialout $USER && \
      mkdir $WORK && \
      # Configure prompt
      echo 'PS1="\u@\h:\W$ "' >> ${HOME}/.bashrc && \
      fix-permissions $HOME
  
  USER root
  
  