-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathDockerfile
24 lines (17 loc) · 881 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
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps
# Installer image
FROM arm32v7/buildpack-deps:jammy-curl AS installer
# 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-arm.tar.gz \
&& dotnet_sha512='8e690259454a540c0c16258bed659c0a26640d2a4f4ba7e194e2807e4597e267564fc0c9b7892805a4fa8e010219de3d2229a1026e08189f0f1eca059a3a9ee6' \
&& 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-noble-arm32v7
# .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