Dockerfile 1.3 KB

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