- Notifications
You must be signed in to change notification settings - Fork 2k
/
Copy pathDockerfile
26 lines (19 loc) · 987 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
25
26
ARG REPO=mcr.microsoft.com/dotnet/runtime
# Installer image
FROM $REPO:10.0.0-preview.3-azurelinux3.0-amd64 AS installer
RUN tdnf install -y \
tar \
&& tdnf clean all
# Retrieve ASP.NET Core
RUN aspnetcore_version=10.0.0-preview.4.25227.102 \
&& curl -fSL --output aspnetcore.tar.gz https://ci.dot.net/public/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-$aspnetcore_version-linux-x64.tar.gz \
&& aspnetcore_sha512='3d70ddb624395dde278e03cf96a5241a47a79898be9337fdaddf20bb6721cc77f597d9afc506a23bf1bc76c2dfc0d2404c85b3c0248e99b45eca32ac79df19b9' \
&& 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:10.0.0-preview.3-azurelinux3.0-amd64
# ASP.NET Core version
ENV ASPNET_VERSION=10.0.0-preview.4.25227.102
COPY --from=installer ["/dotnet", "/usr/share/dotnet"]