-
Notifications
You must be signed in to change notification settings - Fork 99
/
Copy pathalpine.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.102-alpine3.20@sha256:a9d99ca1f16b123abd916a9e95b4304c3d3e03e86781e24ca565119badd5cad6
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 "19b0a7890c371201b944bf0f8cdbb6460d053d63ddbea18cfed3e4199769ce17 dotnet-install.sh" | sha256sum -c \
&& chmod +x ./dotnet-install.sh \
&& ./dotnet-install.sh -v 8.0.405 --install-dir /usr/share/dotnet --no-path \
&& rm dotnet-install.sh
WORKDIR /project