Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrade .NET SDK version to 8.0 #87

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 6 additions & 11 deletions dotnet/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
FROM kubespheredev/builder-base:v3.1.0
FROM kubespheredev/builder-base:v4.1.0

RUN yum install -y krb5-libs libicu openssl-libs compat-openssl10 libgdiplus libstdc++-devel devtoolset-7-gcc devtoolset-7-gcc-c++ devtoolset-7-binutils
ENV DOTNETSDK_VERSION dotnet-sdk-8.0

RUN wget https://dot.net/v1/dotnet-install.sh

RUN chmod a+x dotnet-install.sh

RUN sh dotnet-install.sh -c 5.0 --install-dir /usr/share/dotnet5

RUN ln -s /usr/share/dotnet5/dotnet /usr/bin/dotnet

ENV PATH $PATH:/root/.nuget/tools:/root/.dotnet/tools
# install dotnet-sdk
RUN apt-get install ca-certificates libc6 libgcc-s1 libgssapi-krb5-2 libicu70 liblttng-ust1 libssl3 libstdc++6 libunwind8 zlib1g -y && \
apt-get install $DOTNETSDK_VERSION -y && \
dotnet --version && dotnet --info

CMD ["dotnet", "--version"]