-
Notifications
You must be signed in to change notification settings - Fork 91
/
alpine.dockerfile
28 lines (25 loc) · 1.07 KB
/
alpine.dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM mcr.microsoft.com/dotnet/sdk:8.0.403-alpine3.20@sha256:07cb8622ca6c4d7600b42b2eccba968dff4b37d41b43a9bf4bd800aa02fab117
RUN apk update \
&& apk upgrade \
&& apk add --no-cache --update \
clang=17.0.6-r1 \
cmake=3.29.3-r0 \
make=4.4.1-r2 \
bash=5.2.26-r0 \
alpine-sdk=1.0-r1 \
protobuf=24.4-r1 \
protobuf-dev=24.4-r1 \
grpc=1.62.1-r0 \
grpc-plugins=1.62.1-r0
ENV IsAlpine=true
ENV PROTOBUF_PROTOC=/usr/bin/protoc
ENV gRPC_PluginFullPath=/usr/bin/grpc_csharp_plugin
# Install older sdks using the install script
RUN curl -sSL https://dot.net/v1/dotnet-install.sh --output dotnet-install.sh \
&& echo "SHA256: $(sha256sum dotnet-install.sh)" \
&& echo "c169af55281cd1e58cdbe3ec95c2480cfb210ee460b3ff1421745c8f3236b263 dotnet-install.sh" | sha256sum -c \
&& chmod +x ./dotnet-install.sh \
&& ./dotnet-install.sh -v 6.0.427 --install-dir /usr/share/dotnet --no-path \
&& ./dotnet-install.sh -v 7.0.410 --install-dir /usr/share/dotnet --no-path \
&& rm dotnet-install.sh
WORKDIR /project