anchor.diff:  FROM        ubuntu:14.04
   MAINTAINER  Kotaimen <kotaimen.c@gmail.com>
   ENV         DEBIAN_FRONTEND noninteractive
  -
  -ENV         STAGE_LOCATION /opt/stonemason/
   
   #
   # HACK: Speed local build by using local apt sources
  
positive.code: #             sed s/archive.ubuntu.com/mirrors.aliyun.com/ /etc/apt/sources.list.back > /etc/apt/sources.list
  # RUN         cat /etc/apt/sources.list
  
  WORKDIR     ${STAGE_LOCATION}
  
  #
  # Add ubuntu-gis and mapnik PPA
  #
  RUN         apt-get update && \
              apt-get -y install software-properties-common && \
              add-apt-repository -y ppa:mapnik/nightly-2.3
  
  #
  # Install binary packages
  #
  RUN         apt-get update &&\
              apt-get -y install python-dev python-pip \
                  libz-dev \
                  libjpeg-dev libtiff-dev libfreetype6-dev \
                  libwebp-dev liblcms2-dev imagemagick \
                  libgeos-dev libgdal-dev gdal-bin python-gdal \
                  python-mapnik
  
  #
  # Speedup pip by install "must have" python packages first
  
negative.code: #
  RUN         geos-config --version && \
              ogrinfo --version && \
              ogrinfo --formats && \
              mapnik-config --version && \
              ls `python -c 'import mapnik; print mapnik.inputpluginspath'` && \
              convert --version && \
              convert rose: /tmp/rose.jpg && \
              convert rose: /tmp/rose.png && \
              convert rose: /tmp/rose.tiff && \
              convert rose: /tmp/rose.webo
  
  #
  # Set locale, otherwise Click complains, see http://click.pocoo.org/3/python3/
  