Skip to content

Commit

Permalink
Updated linux tests dockerfile to include .NET 9.0 SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
kzdev-net committed Jan 3, 2025
1 parent 1f6165e commit 972cd5c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Source/linuxtest.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,19 @@
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS dotnet6

# Use the official .NET 8 SDK image as the base image for .NET 8
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS final
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS dotnet8

# Use the official .NET 9 SDK image as the base image for .NET 8
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS final

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

# Install .NET 6 SDK
COPY --from=dotnet8 /usr/share/dotnet /usr/share/dotnet
COPY --from=dotnet8 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/

# Set the working directory inside the container
WORKDIR /app

Expand Down

0 comments on commit 972cd5c

Please sign in to comment.