7
7
ASPNETCORE_URLS= \
8
8
# Do not generate certificate
9
9
DOTNET_GENERATE_ASPNET_CERTIFICATE=false \
10
- # SDK version
10
+ # SDK versions
11
+ DOTNET_SDK_VERSION_9_0=9.0.305\
11
12
DOTNET_SDK_VERSION_8_0=8.0.405\
13
+ DOTNET_SDK_VERSION_3_1=3.1.426\
12
14
# Enable correct mode for dotnet watch (only mode supported in a container)
13
15
DOTNET_USE_POLLING_FILE_WATCHER=true \
14
16
# Skip extraction of XML docs - generally not useful within an image/container - helps performance
@@ -37,8 +39,9 @@ RUN apt-add-repository ppa:git-core/ppa \
37
39
# Install .NET SDK
38
40
39
41
# https://builds.dotnet.microsoft.com/dotnet/release-metadata/8.0/releases.json
40
- RUN curl -fSL --output dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/a91ddad4-a3c2-4303-9efc-1ca6b7af850c/be1763df9211599df1cf1c6f504b3c41/dotnet-sdk-$DOTNET_SDK_VERSION_8_0-linux-x64.tar.gz \
41
- && dotnet_sha512='2499faa1520e8fd9a287a6798755de1a3ffef31c0dc3416213c8a9bec64861419bfc818f1c1c410b86bb72848ce56d4b6c74839afd8175a922345fc649063ec6' \
42
+
43
+ RUN curl -fSL --output dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/Sdk/$DOTNET_SDK_VERSION_9_0/dotnet-sdk-$DOTNET_SDK_VERSION_9_0-linux-x64.tar.gz \
44
+ && dotnet_sha512='f9140e141d731d37de9b6e1eab0b25726f0b9de24d2888a4200649880e9e43671ebb3897a249f4324c214d56eb3e7f0ef0cfa56b32850a9c03811b21e6377bca' \
42
45
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
43
46
&& mkdir -p /usr/share/dotnet \
44
47
&& tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
@@ -47,22 +50,19 @@ RUN curl -fSL --output dotnet.tar.gz https://download.visualstudio.microsoft.com
47
50
# Trigger first run experience by running arbitrary cmd
48
51
&& dotnet help
49
52
50
- # Below adapated from https://hub.docker.com/_/microsoft-dotnet-sdk
51
- # https://github.com/dotnet/dotnet-docker/blob/b20c03e0644b42167d66a85fe6077ec2428a47fa/src/sdk/5.0/focal/amd64/Dockerfile
52
- RUN curl -fSL --output dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/Sdk/$DOTNET_SDK_VERSION_6_0/dotnet-sdk-$DOTNET_SDK_VERSION_6_0-linux-x64.tar.gz \
53
- && dotnet_sha512='ee0a77d54e6d4917be7310ff0abb3bad5525bfb4beb1db0c215e65f64eb46511f5f12d6c7ff465a1d4ab38577e6a1950fde479ee94839c50e627020328a702de' \
53
+ RUN curl -fSL --output dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/a91ddad4-a3c2-4303-9efc-1ca6b7af850c/be1763df9211599df1cf1c6f504b3c41/dotnet-sdk-$DOTNET_SDK_VERSION_8_0-linux-x64.tar.gz \
54
+ && dotnet_sha512='2499faa1520e8fd9a287a6798755de1a3ffef31c0dc3416213c8a9bec64861419bfc818f1c1c410b86bb72848ce56d4b6c74839afd8175a922345fc649063ec6' \
54
55
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
55
56
&& mkdir -p /usr/share/dotnet \
56
57
&& tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
57
58
&& rm dotnet.tar.gz \
58
- && if [ ! -e /usr/bin/dotnet ]; then ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet; fi \
59
59
# Trigger first run experience by running arbitrary cmd
60
60
&& dotnet help
61
61
62
62
# Below adapted from https://hub.docker.com/_/microsoft-dotnet-sdk
63
63
# https://github.com/dotnet/dotnet-docker/blob/b20c03e0644b42167d66a85fe6077ec2428a47fa/src/sdk/3.1/focal/amd64/Dockerfile
64
64
RUN curl -fSL --output dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/Sdk/$DOTNET_SDK_VERSION_3_1/dotnet-sdk-$DOTNET_SDK_VERSION_3_1-linux-x64.tar.gz \
65
- && dotnet_sha512='dec1dcf326487031c45dec0849a046a0d034d6cbb43ab591da6d94c2faf72da8e31deeaf4d2165049181546d5296bb874a039ccc2f618cf95e68a26399da5e7f ' \
65
+ && dotnet_sha512='6c3f9541557feb5d5b93f5c10b28264878948e8540f2b8bb7fb966c32bd38191e6b310dcb5f87a4a8f7c67a7046fa932cde3cce9dc8341c1365ae6c9fcc481ec ' \
66
66
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
67
67
&& tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
68
68
&& rm dotnet.tar.gz \
0 commit comments