content: # Dockerfile
  #
  # A Raspian environment for building Swift itself.
  #
  # Ubuntu 16.04 is based on Debian stretch/sid
  # resin/rpi-raspbian latest is jessie (current Debian 8 stable)
  #
  # resin/rpi-raspbian:jessie has no clang 3.8, but 3.7 and 3.9.
  #
  FROM resin/rpi-raspbian:jessie
  
  ENV DEBIAN_FRONTEND noninteractive
  
  ARG CLANG_VERSION=3.9
  
  RUN apt-get update
  
  # https://www.uraimo.com/2016/12/30/Swift-3-0-2-for-raspberrypi-zero-1-2-3/
  # python3 required for test
  RUN apt-get install -y \
    patch git     \
    libedit2      \
    libpython2.7 curl libxml2 \
    python3       \
    \
    cmake ninja-build clang-$CLANG_VERSION python uuid-dev libicu-dev                \
    icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev        \
    swig libpython-dev libncurses5-dev pkg-config libblocksruntime-dev    \
    libcurl4-openssl-dev autoconf libtool systemtap-sdt-dev libkqueue-dev \
    automake make m4 \
    \
    lsb-release
    
  RUN update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-$CLANG_VERSION 100
  RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-$CLANG_VERSION 100
  