Skip to content

Commit

Permalink
Update dotnet Dockerfile to .NET 9 (#127)
Browse files Browse the repository at this point in the history
.NET 9 went GA last week and we want to start using it here.
  • Loading branch information
nr-ahemsath authored Nov 20, 2024
1 parent 23d2027 commit f06d684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/dotnet/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM mcr.microsoft.com/dotnet/aspnet:8.0-jammy AS base
FROM mcr.microsoft.com/dotnet/aspnet:9.0-noble AS base
WORKDIR /app
EXPOSE 80
ENV ASPNETCORE_URLS=http://+:80

FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0-noble AS build
WORKDIR /src
RUN dotnet new webapi --name WeatherForecast --output ./
RUN dotnet publish -o /app/publish
Expand Down

0 comments on commit f06d684

Please sign in to comment.