fix: improve Docker build refs NOISSUE

This commit is contained in:
Simon Diesenreiter
2025-04-15 15:18:37 +02:00
parent bf4bcebfb8
commit 001711487c
2 changed files with 3 additions and 3 deletions

View File

@@ -1,15 +0,0 @@
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /App
# Copy everything
COPY . ./
# Restore as distinct layers
RUN dotnet restore
# Build and publish a release
RUN dotnet publish -o out
# Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:9.0
WORKDIR /App
COPY --from=build /App/out .
ENTRYPOINT ["dotnet", "song_of_the_day.dll"]