| 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 |
|
| 15 |
FROM mcr.microsoft.com/dotnet/core/sdk:2.1-alpine3.9 |
| 16 |
|
| 17 |
RUN apk update && apk add bash |
| 18 |
RUN 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 |
| 22 |
RUN apk update && apk --no-cache add ca-certificates wget |
| 23 |
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub |
| 24 |
RUN wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.30-r0/glibc-2.30-r0.apk |
| 25 |
RUN apk add glibc-2.30-r0.apk |
| 26 |
|
| 27 |
# installing mono on alpine is hard and we don't really need it |
| 28 |
ENV SKIP_NET45_DISTRIBTEST=1 |
| 29 |
# we have a separate distribtest for netcoreapp3.1 |
| 30 |
ENV SKIP_NETCOREAPP31_DISTRIBTEST=1 |
| 31 |
# we have a separate distribtest for net5.0 |
| 32 |
ENV SKIP_NET50_DISTRIBTEST=1 |
| 33 |
|