diff --git a/Others/dotnet-aspnet/9.0.5/24.03-lts-sp1/Dockerfile b/Others/dotnet-aspnet/9.0.5/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..da03315d2f10bd2004f8a449700467abce677786 --- /dev/null +++ b/Others/dotnet-aspnet/9.0.5/24.03-lts-sp1/Dockerfile @@ -0,0 +1,31 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} + +ARG TARGETARCH +ARG BUILDARCH +ARG VERSION=9.0.5 + +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/Others/dotnet-aspnet/meta.yml b/Others/dotnet-aspnet/meta.yml index 6edb89105a86f69645bab67ef78444c39625fcd6..462b31180049200ea7ce08d6b59915581420335e 100644 --- a/Others/dotnet-aspnet/meta.yml +++ b/Others/dotnet-aspnet/meta.yml @@ -23,4 +23,6 @@ 9.0.1-oe2203sp1: path: 9.0.1/22.03-lts-sp1/Dockerfile 9.0.3-oe2403lts: - path: Others/dotnet-aspnet/9.0.3/24.03-lts/Dockerfile \ No newline at end of file + path: Others/dotnet-aspnet/9.0.3/24.03-lts/Dockerfile +9.0.5-oe2403sp1: + path: Others/dotnet-aspnet/9.0.5/24.03-lts-sp1/Dockerfile \ No newline at end of file