From d51ceedff72c4cdbcfbab7c22b0f9da0930cea60 Mon Sep 17 00:00:00 2001 From: openeuler_bot <673672685@qq.com> Date: Tue, 24 Sep 2024 07:25:33 +0000 Subject: [PATCH] oe2203sp3 update dotnet-aspnet to 8.0.8 --- dotnet-aspnet/8.0.8/22.03-lts-sp3/Dockerfile | 31 ++++++++++++++++++++ dotnet-aspnet/meta.yml | 4 ++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 dotnet-aspnet/8.0.8/22.03-lts-sp3/Dockerfile diff --git a/dotnet-aspnet/8.0.8/22.03-lts-sp3/Dockerfile b/dotnet-aspnet/8.0.8/22.03-lts-sp3/Dockerfile new file mode 100644 index 0000000..26c0bc7 --- /dev/null +++ b/dotnet-aspnet/8.0.8/22.03-lts-sp3/Dockerfile @@ -0,0 +1,31 @@ +ARG BASE=openeuler/openeuler:22.03-lts-sp3 +FROM ${BASE} + +ARG TARGETARCH +ARG BUILDARCH +ARG VERSION=8.0.8 + +ENV ASPNETCORE_URLS=http://+:8080 \ + DOTNET_RUNNING_IN_CONTAINER=true \ + DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=true + +RUN if [ "$TARGETARCH" = "amd64" ]; then \ + BUILDARCH="x64"; \ + elif [ "$TARGETARCH" = "arm64" ]; then \ + BUILDARCH="arm64"; \ + fi && \ + yum update -y && yum install -y libicu && yum clean all && \ + curl -fSL -o dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Runtime/${VERSION}/dotnet-runtime-${VERSION}-linux-${BUILDARCH}.tar.gz && \ + curl -fSL -o aspnetcore.tar.gz https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/${VERSION}/aspnetcore-runtime-${VERSION}-linux-${BUILDARCH}.tar.gz && \ + mkdir -p /dotnet-runtime && tar -zxvf dotnet.tar.gz -C /dotnet-runtime && \ + mkdir -p /dotnet-aspnet && tar -oxzf aspnetcore.tar.gz -C /dotnet-aspnet ./shared/Microsoft.AspNetCore.App && \ + mv /dotnet-runtime /usr/share/dotnet && \ + cp -rf /dotnet-aspnet/* /usr/share/dotnet/ && \ + rm -f aspnetcore.tar.gz && rm -rf /dotnet-aspnet && \ + rm -f dotnet.tar.gz + +RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet + +ENTRYPOINT [ "dotnet" ] + +CMD [ "--info" ] diff --git a/dotnet-aspnet/meta.yml b/dotnet-aspnet/meta.yml index 5ca0b8c..cac69ff 100644 --- a/dotnet-aspnet/meta.yml +++ b/dotnet-aspnet/meta.yml @@ -1,2 +1,4 @@ 8.0.3-oe2203sp3: - path: dotnet-aspnet/8.0.3/22.03-lts-sp3/Dockerfile \ No newline at end of file + path: dotnet-aspnet/8.0.3/22.03-lts-sp3/Dockerfile +8.0.8-oe2203sp3: + path: dotnet-aspnet/8.0.8/22.03-lts-sp3/Dockerfile \ No newline at end of file -- Gitee