-
Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathDockerfile
21 lines (17 loc) · 1.04 KB
/
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-deps
FROM $REPO:10.0.0-preview.3-alpine3.21-arm32v7
# .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.
ENV \
# .NET Runtime version
DOTNET_VERSION=10.0.0-preview.3.25171.5 \
# ASP.NET Core version
ASPNET_VERSION=10.0.0-preview.3.25172.1
# Install ASP.NET Composite Runtime
RUN wget -O dotnet.tar.gz https://ci.dot.net/public/aspnetcore/Runtime/$ASPNET_VERSION/aspnetcore-runtime-composite-$ASPNET_VERSION-linux-musl-arm.tar.gz \
&& dotnet_sha512='37319b3e7962a1e1092bf875feaf04d6f6c0fbda2f04e86c0add572883d70ab8a0b4284bb7255bfa08c1115303eee4f0cbcf9feca495775a1c1f9111e392f463' \
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
&& mkdir -p /usr/share/dotnet \
&& tar -oxzf dotnet.tar.gz -C /usr/share/dotnet \
&& rm dotnet.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet