-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Dockerfile
22 lines (16 loc) · 921 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
ARG REPO=mcr.microsoft.com/dotnet/runtime
# Installer image
FROM arm64v8/buildpack-deps:noble-curl AS installer
# Retrieve ASP.NET Core
RUN aspnetcore_version=9.0.0-rc.1.24452.1 \
&& curl -fSL --output aspnetcore.tar.gz https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-$aspnetcore_version-linux-arm64.tar.gz \
&& aspnetcore_sha512='84610a38fb9a98eb7bd26ba89a9c4998682ec3fffb5eade5bbafbafd63cac7d9a5279618bb5b2575d27feec098da5fe6f7150c67253f3f37762601590396e122' \
&& echo "$aspnetcore_sha512 aspnetcore.tar.gz" | sha512sum -c - \
&& mkdir -p /dotnet \
&& tar -oxzf aspnetcore.tar.gz -C /dotnet ./shared/Microsoft.AspNetCore.App \
&& rm aspnetcore.tar.gz
# ASP.NET Core image
FROM $REPO:9.0.0-rc.1-noble-chiseled-extra-arm64v8
# ASP.NET Core version
ENV ASPNET_VERSION=9.0.0-rc.1.24452.1
COPY --from=installer ["/dotnet", "/usr/share/dotnet"]