1# Copyright 2019 The gRPC Authors 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15FROM debian:10 16 17RUN apt update && apt -y upgrade 18RUN apt install -y apt-transport-https ca-certificates curl dirmngr gnupg unzip wget && apt clean 19 20# Install mono 21RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF \ 22 && echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list \ 23 && apt update && apt install -y mono-devel nuget \ 24 && apt clean 25 26# Install dotnet SDK 27RUN wget https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb \ 28 && dpkg -i packages-microsoft-prod.deb \ 29 && apt update \ 30 && apt install -y dotnet-sdk-3.1 \ 31 && apt clean 32 33# Make sure the mono certificate store is up-to-date to prevent issues with nuget restore 34RUN curl https://curl.haxx.se/ca/cacert.pem > ~/cacert.pem && cert-sync ~/cacert.pem && rm -f ~/cacert.pem 35 36# we have a separate distribtest for netcoreapp2.1 37ENV SKIP_NETCOREAPP21_DISTRIBTEST=1 38# we have a separate distribtest for net5.0 39ENV SKIP_NET50_DISTRIBTEST=1 40# we have a separate distribtest for net7.0 41ENV SKIP_NET70_DISTRIBTEST=1 42