-
Notifications
You must be signed in to change notification settings - Fork 93
/
alpine.dockerfile
27 lines (24 loc) · 1013 Bytes
/
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
FROM mcr.microsoft.com/dotnet/sdk:9.0.101-alpine3.20@sha256:1e2d0919b9489be1306a955bc506b74a95fd0c5fb9cb8bd58b96bea82d600152
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 8.0.404 --install-dir /usr/share/dotnet --no-path \
&& rm dotnet-install.sh
WORKDIR /project