1- FROM jupyter/scipy -notebook:latest
1+ FROM jupyter/base -notebook:latest
22
33# Install .NET CLI dependencies
44
@@ -14,40 +14,40 @@ USER root
1414RUN apt-get update
1515RUN apt-get install -y curl
1616
17+ ENV \
18+ # Enable detection of running in a container
19+ DOTNET_RUNNING_IN_CONTAINER=true \
20+ # Enable correct mode for dotnet watch (only mode supported in a container)
21+ DOTNET_USE_POLLING_FILE_WATCHER=true \
22+ # Skip extraction of XML docs - generally not useful within an image/container - helps performance
23+ NUGET_XMLDOC_MODE=skip \
24+ # Opt out of telemetry until after we install jupyter when building the image, this prevents caching of machine id
25+ DOTNET_TRY_CLI_TELEMETRY_OPTOUT=true
26+
1727# Install .NET CLI dependencies
18- RUN apt-get install -y --no-install-recommends \
28+ RUN apt-get update \
29+ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
1930 libc6 \
2031 libgcc1 \
2132 libgssapi-krb5-2 \
22- libicu60 \
33+ libicu66 \
2334 libssl1.1 \
2435 libstdc++6 \
25- zlib1g
26-
27- RUN rm -rf /var/lib/apt/lists/*
36+ zlib1g \
37+ && rm -rf /var/lib/apt/lists/*
2838
2939# Install .NET Core SDK
30-
31- # When updating the SDK version, the sha512 value a few lines down must also be updated.
32- ENV DOTNET_SDK_VERSION 3.1.200
33-
34- RUN curl -SL --output dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-x64.tar.gz \
35- && dotnet_sha512='5b9398c7bfe7f67cd9f38fdd4e6e429e1b6aaac0fe04672be0f8dca26580fb46906fd1d2deea6a7d3fb07d77e898f067d3ac1805fe077dc7c1adf9515c9bc9a9' \
40+ RUN dotnet_sdk_version=3.1.301 \
41+ && curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Sdk/$dotnet_sdk_version/dotnet-sdk-$dotnet_sdk_version-linux-x64.tar.gz \
42+ && dotnet_sha512='dd39931df438b8c1561f9a3bdb50f72372e29e5706d3fb4c490692f04a3d55f5acc0b46b8049bc7ea34dedba63c71b4c64c57032740cbea81eef1dce41929b4e' \
3643 && echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
3744 && mkdir -p /usr/share/dotnet \
38- && tar -zxf dotnet.tar.gz -C /usr/share/dotnet \
45+ && tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
3946 && rm dotnet.tar.gz \
40- && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
41-
42- # Enable detection of running in a container
43- ENV DOTNET_RUNNING_IN_CONTAINER=true \
44- # Enable correct mode for dotnet watch (only mode supported in a container)
45- DOTNET_USE_POLLING_FILE_WATCHER=true \
46- # Skip extraction of XML docs - generally not useful within an image/container - helps performance
47- NUGET_XMLDOC_MODE=skip \
48- # Opt out of telemetry until after we install jupyter when building the image, this prevents caching of machine id
49- DOTNET_TRY_CLI_TELEMETRY_OPTOUT=true
50-
47+ && ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet \
48+ # Trigger first run experience by running arbitrary cmd
49+ && dotnet help
50+
5151# Copy notebooks
5252COPY ./notebooks/ ${HOME}/Notebooks/
5353
0 commit comments