forked from dotnet/dotnet-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CBL Mariner/Azure Linux
extra
images for .NET Runtime and ASP.N…
…ET Core (dotnet#5262)
- Loading branch information
Showing
13 changed files
with
394 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/aspnet/8.0/cbl-mariner2.0-distroless-composite-extra/amd64/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
ARG REPO=mcr.microsoft.com/dotnet/runtime-deps | ||
|
||
# Installer image | ||
FROM mcr.microsoft.com/cbl-mariner/base/core:2.0 AS installer | ||
|
||
RUN tdnf install -y \ | ||
ca-certificates \ | ||
gzip \ | ||
tar \ | ||
&& tdnf clean all | ||
|
||
# Retrieve ASP.NET Composite Runtime | ||
RUN aspnetcore_version=8.0.3 \ | ||
&& curl -fSL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/$aspnetcore_version/aspnetcore-runtime-composite-$aspnetcore_version-linux-x64.tar.gz \ | ||
&& dotnet_sha512='d80104dc94afd909d424718702bdabf6d575cd24c4b6f68b83d55f6727c1c06ce5ca40a22bd7f3e7172dbea4ecaf501e44823db25cd8bc55e86768a854bd7b1a' \ | ||
&& 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 | ||
|
||
RUN mkdir /dotnet-symlink \ | ||
&& ln -s /usr/share/dotnet/dotnet /dotnet-symlink/dotnet | ||
|
||
|
||
# ASP.NET Composite Image | ||
FROM $REPO:8.0.3-cbl-mariner2.0-distroless-extra-amd64 | ||
|
||
ENV \ | ||
# .NET Runtime version | ||
DOTNET_VERSION=8.0.3 \ | ||
# ASP.NET Core version | ||
ASPNET_VERSION=8.0.3 | ||
|
||
COPY --from=installer ["/usr/share/dotnet", "/usr/share/dotnet"] | ||
COPY --from=installer ["/dotnet-symlink", "/usr/bin"] | ||
|
||
ENTRYPOINT ["/usr/bin/dotnet"] | ||
CMD ["--info"] |
Oops, something went wrong.