-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathDockerfile
28 lines (20 loc) · 961 Bytes
/
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
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
# Installer image
FROM $REPO:10.0.0-preview.3-azurelinux3.0-arm64v8 AS installer
RUN tdnf install -y \
tar \
&& tdnf clean all
# Retrieve .NET Runtime
RUN dotnet_version=10.0.0-preview.3.25171.5 \
&& curl -fSL --output dotnet.tar.gz https://ci.dot.net/public/Runtime/$dotnet_version/dotnet-runtime-$dotnet_version-linux-arm64.tar.gz \
&& dotnet_sha512='a6a59432c12ac1964957ca09f78e15e0b2d6435d9b70ba13b6bc23ec99c9523e81e23297fe28297fa723caff4a5d2159a0cab50470de623e8172245d4343f1f6' \
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
&& mkdir -p /dotnet \
&& tar -oxzf dotnet.tar.gz -C /dotnet \
&& rm dotnet.tar.gz
# .NET runtime image
FROM $REPO:10.0.0-preview.3-azurelinux3.0-arm64v8
# .NET Runtime version
ENV DOTNET_VERSION=10.0.0-preview.3.25171.5
COPY --from=installer ["/dotnet", "/usr/share/dotnet"]
RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet