fix: remove unnecessary dotnet runtime download in CI job refs NOISSUE

This commit is contained in:
Simon Diesenreiter
2025-04-15 15:24:47 +02:00
parent 7dabcb71f8
commit 8412cc13df
2 changed files with 2 additions and 6 deletions

View File

@@ -4,9 +4,9 @@ WORKDIR /App
# Copy everything
COPY . ./
# Restore as distinct layers
RUN dotnet restore --project ./song_of_the_day/song_of_the_day.csproj
RUN dotnet restore ./song_of_the_day/song_of_the_day.csproj
# Build and publish a release
RUN dotnet publish --project ./song_of_the_day/song_of_the_day.csproj -o out
RUN dotnet publish ./song_of_the_day/song_of_the_day.csproj -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:9.0