We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6165e commit 972cd5cCopy full SHA for 972cd5c
1 file changed
Source/linuxtest.dockerfile
@@ -2,12 +2,19 @@
2
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS dotnet6
3
4
# Use the official .NET 8 SDK image as the base image for .NET 8
5
-FROM mcr.microsoft.com/dotnet/sdk:8.0 AS final
+FROM mcr.microsoft.com/dotnet/sdk:8.0 AS dotnet8
6
+
7
+# Use the official .NET 9 SDK image as the base image for .NET 8
8
+FROM mcr.microsoft.com/dotnet/sdk:9.0 AS final
9
10
# Install .NET 6 SDK
11
COPY --from=dotnet6 /usr/share/dotnet /usr/share/dotnet
12
COPY --from=dotnet6 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
13
14
+# Install .NET 6 SDK
15
+COPY --from=dotnet8 /usr/share/dotnet /usr/share/dotnet
16
+COPY --from=dotnet8 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
17
18
# Set the working directory inside the container
19
WORKDIR /app
20
0 commit comments