Skip to content

Commit 972cd5c

Browse files
committed
Updated linux tests dockerfile to include .NET 9.0 SDK
1 parent 1f6165e commit 972cd5c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Source/linuxtest.dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS dotnet6
33

44
# 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
5+
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
69

710
# Install .NET 6 SDK
811
COPY --from=dotnet6 /usr/share/dotnet /usr/share/dotnet
912
COPY --from=dotnet6 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
1013

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+
1118
# Set the working directory inside the container
1219
WORKDIR /app
1320

0 commit comments

Comments
 (0)