-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Copy pathDockerfile
15 lines (12 loc) · 897 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ARG REPO=mcr.microsoft.com/dotnet/runtime
FROM $REPO:8.0.11-alpine3.20-amd64
# .NET globalization APIs will use invariant mode by default because DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true is set
# by the base runtime-deps image. See https://aka.ms/dotnet-globalization-alpine-containers for more information.
# ASP.NET Core version
ENV ASPNET_VERSION=8.0.11
# Install ASP.NET Core
RUN wget -O aspnetcore.tar.gz https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/$ASPNET_VERSION/aspnetcore-runtime-$ASPNET_VERSION-linux-musl-x64.tar.gz \
&& aspnetcore_sha512='9120ef0cac2002fefee4ab900fc0085fb56dcae58567cf8f8f61f04f6f5623dc995cfba8f6dc2c61fa4d96dda3a2ee0edc8530b40fdbc16d26aef5ba32721c4d' \
&& echo "$aspnetcore_sha512 aspnetcore.tar.gz" | sha512sum -c - \
&& tar -oxzf aspnetcore.tar.gz -C /usr/share/dotnet ./shared/Microsoft.AspNetCore.App \
&& rm aspnetcore.tar.gz