xref: /aosp_15_r20/external/grpc-grpc/tools/dockerfile/distribtest/csharp_alpine_x64/Dockerfile (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
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 mcr.microsoft.com/dotnet/core/sdk:2.1-alpine3.9
16
17RUN apk update && apk add bash
18RUN apk update && apk add unzip
19
20# Workaround for https://github.com/grpc/grpc/issues/18428
21# Also see https://github.com/sgerrand/alpine-pkg-glibc
22RUN apk update && apk --no-cache add ca-certificates wget
23RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
24RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-2.30-r0.apk
25RUN apk add glibc-2.30-r0.apk
26
27# installing mono on alpine is hard and we don't really need it
28ENV SKIP_NET45_DISTRIBTEST=1
29# we have a separate distribtest for netcoreapp3.1
30ENV SKIP_NETCOREAPP31_DISTRIBTEST=1
31# we have a separate distribtest for net5.0
32ENV SKIP_NET50_DISTRIBTEST=1
33# we have a separate distribtest for net7.0
34ENV SKIP_NET70_DISTRIBTEST=1
35