@@ -17,41 +17,42 @@ USER root
17
17
ENV \
18
18
# Enable detection of running in a container
19
19
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 \
20
24
# Enable correct mode for dotnet watch (only mode supported in a container)
21
25
DOTNET_USE_POLLING_FILE_WATCHER=true \
22
26
# Skip extraction of XML docs - generally not useful within an image/container - helps performance
23
27
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
25
29
DOTNET_TRY_CLI_TELEMETRY_OPTOUT=true
26
30
27
31
# Install .NET CLI dependencies
28
32
RUN apt-get update \
29
- && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
33
+ && apt-get install -y --no-install-recommends \
30
34
curl \
31
- libc6 \
35
+ libc6 \
32
36
libgcc1 \
33
37
libgssapi-krb5-2 \
34
- libicu66 \
35
- libssl1.1 \
36
- libstdc++6 \
38
+ libssl3 \
39
+ git \
40
+ libicu70 \
41
+ wget \
42
+ libstdc++6 \
37
43
zlib1g \
38
44
&& rm -rf /var/lib/apt/lists/*
39
45
40
46
# Install .NET Core SDK
41
47
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 - \
49
51
&& 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 \
51
53
&& 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
55
56
56
57
# Copy package sources
57
58
@@ -65,7 +66,7 @@ RUN pip install nteract_on_jupyter
65
66
# RUN dotnet tool install -g Microsoft.dotnet-interactive --add-source "https://dotnet.myget.org/F/dotnet-try/api/v3/index.json"
66
67
67
68
# 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
69
70
70
71
ENV PATH="${PATH}:${HOME}/.dotnet/tools"
71
72
RUN echo "$PATH"
0 commit comments