anchor.diff:          dotnet-sdk-2.2 && \
       rm -rf /var/lib/apt/lists/*
   
  -WORKDIR /src
  -RUN git clone https://github.com/mono/mono -b 2019-02
  +# Install Mono.
  +RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
  +    echo "deb https://download.mono-project.com/repo/debian nightly-stretch main" | tee /etc/apt/sources.list.d/mono-official-nightly.list && \
  +    echo "deb https://download.mono-project.com/repo/debian preview-stretch main" | tee /etc/apt/sources.list.d/mono-official-preview.list && \
  +    apt-get update && \
  +    apt-cache madison mono-devel && \
  +    apt-get install -y mono-devel=6.3.0.77-0nightly1+debian9b1
   
  -WORKDIR /src/mono
  -RUN ./autogen.sh --disable-boehm --enable-llvm=yes && \
  -    make -j8 && \
  -    make install
  +# AOT the framework.
  +RUN for i in /usr/lib/mono/gac/*/*/*.dll; do mono --aot=llvm $i; done
   
  -RUN apt-get update && \
  -    apt-get install -y llvm-3.8 && \
  -    rm -rf /var/lib/apt/lists/*
  -
  -ENV PATH="/src/mono/llvm/usr/bin:${PATH}"
  -RUN mono --aot=llvm /usr/local/lib/mono/4.5/mscorlib.dll
  -RUN for i in /usr/local/lib/mono/gac/*/*/*.dll; do mono --aot=llvm $i; done
  -
  +# Set the MONO command line.
   ENV MONOCMD='mono --llvm'
   
  +# Clone and build the test.
   WORKDIR /src
   RUN git clone https://github.com/brianrob/tests
  -
   WORKDIR /src/tests/managed/aspnet_start/src
   RUN make mono
   
  +# AOT the test and its non-framework dependencies.
   WORKDIR /src/tests/managed/aspnet_start/src/bin_mono/Release/net471/linux-x64/publish
   RUN for i in *.dll; do mono --aot=llvm $i; done
   
  +# Run the test.
   WORKDIR /src/tests/managed/aspnet_start/src
   ENV ASPNETCORE_URLS http://+:8080
  -
   ENTRYPOINT ["./run_mono.sh"]
  
positive.code: FROM debian:stretch-20181226
  
  RUN apt-get update && \
      apt-get install -y \
          make \
          git \
          gcc \
  
negative.code:         automake \
          cmake \
          gettext \
          python
  
  # Install dotnet 2.2 SDK.
  RUN apt-get install -y gpg wget apt-transport-https dirmngr && \
      wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --no-tty --dearmor > microsoft.asc.gpg && \
      mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/ && \
      wget -q https://packages.microsoft.com/config/debian/9/prod.list && \
  