Skip to content

Commit a69dd42

Browse files
committed
Updated to .NET 8
1 parent f2ad2de commit a69dd42

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

base/Dockerfile

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,41 +17,42 @@ USER root
1717
ENV \
1818
# Enable detection of running in a container
1919
DOTNET_RUNNING_IN_CONTAINER=true \
20+
# Do not show first run text
21+
DOTNET_NOLOGO=true \
22+
# SDK version
23+
DOTNET_SDK_VERSION=8.0.100 \
2024
# Enable correct mode for dotnet watch (only mode supported in a container)
2125
DOTNET_USE_POLLING_FILE_WATCHER=true \
2226
# Skip extraction of XML docs - generally not useful within an image/container - helps performance
2327
NUGET_XMLDOC_MODE=skip \
24-
# Opt out of telemetry until after we install jupyter when building the image, this prevents caching of machine id
28+
# Opt out of telemetry until after we install jupyter when building the image, this prevents caching of machine id
2529
DOTNET_TRY_CLI_TELEMETRY_OPTOUT=true
2630

2731
# Install .NET CLI dependencies
2832
RUN apt-get update \
29-
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
33+
&& apt-get install -y --no-install-recommends \
3034
curl \
31-
libc6 \
35+
libc6 \
3236
libgcc1 \
3337
libgssapi-krb5-2 \
34-
libicu66 \
35-
libssl1.1 \
36-
libstdc++6 \
38+
libssl3 \
39+
git \
40+
libicu70 \
41+
wget \
42+
libstdc++6 \
3743
zlib1g \
3844
&& rm -rf /var/lib/apt/lists/*
3945

4046
# Install .NET Core SDK
4147

42-
# When updating the SDK version, the sha512 value a few lines down must also be updated.
43-
ENV DOTNET_SDK_VERSION 3.1.301
44-
45-
RUN dotnet_sdk_version=3.1.301 \
46-
&& curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Sdk/$dotnet_sdk_version/dotnet-sdk-$dotnet_sdk_version-linux-x64.tar.gz \
47-
&& dotnet_sha512='dd39931df438b8c1561f9a3bdb50f72372e29e5706d3fb4c490692f04a3d55f5acc0b46b8049bc7ea34dedba63c71b4c64c57032740cbea81eef1dce41929b4e' \
48-
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
48+
RUN curl -fSL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \
49+
&& dotnet_sha512='13905ea20191e70baeba50b0e9bbe5f752a7c34587878ee104744f9fb453bfe439994d38969722bdae7f60ee047d75dda8636f3ab62659450e9cd4024f38b2a5' \
50+
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
4951
&& mkdir -p /usr/share/dotnet \
50-
&& tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
52+
&& tar -oxzf dotnet.tar.gz -C /usr/share/dotnet \
5153
&& rm dotnet.tar.gz \
52-
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \
53-
# Trigger first run experience by running arbitrary cmd
54-
&& dotnet help
54+
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \
55+
&& dotnet help
5556

5657
# Copy package sources
5758

@@ -65,7 +66,7 @@ RUN pip install nteract_on_jupyter
6566
# RUN dotnet tool install -g Microsoft.dotnet-interactive --add-source "https://dotnet.myget.org/F/dotnet-try/api/v3/index.json"
6667

6768
#latest stable from nuget.org
68-
RUN dotnet tool install -g Microsoft.dotnet-interactive --add-source "https://api.nuget.org/v3/index.json" --version 1.0.148003
69+
RUN dotnet tool install -g Microsoft.dotnet-interactive --add-source "https://api.nuget.org/v3/index.json" --version 1.0.505402
6970

7071
ENV PATH="${PATH}:${HOME}/.dotnet/tools"
7172
RUN echo "$PATH"

0 commit comments

Comments
 (0)