-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathDockerfile
21 lines (15 loc) · 898 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG REPO=mcr.microsoft.com/dotnet/runtime
# Installer image
FROM arm64v8/buildpack-deps:jammy-curl AS installer
# Retrieve ASP.NET Core
RUN aspnetcore_version=6.0.36 \
&& 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='2a6a2dde7ba3aeee9145686ee32f1901a7aa6238ae8395ea3bad51770e227069272be83959b711d238210c377b66661e3cf039965f019b58cd44c08a982404a2' \
&& echo "$aspnetcore_sha512 aspnetcore.tar.gz" | sha512sum -c - \
&& tar -oxzf aspnetcore.tar.gz ./shared/Microsoft.AspNetCore.App \
&& rm aspnetcore.tar.gz
# ASP.NET Core image
FROM $REPO:6.0.36-jammy-arm64v8
# ASP.NET Core version
ENV ASPNET_VERSION=6.0.36
COPY --from=installer ["/shared/Microsoft.AspNetCore.App", "/usr/share/dotnet/shared/Microsoft.AspNetCore.App"]