fixed dockerfile image

This commit is contained in:
Rudis Muiznieks 2024-04-28 15:08:17 -05:00
parent e21c69774a
commit 189ac61cd7
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
1 changed files with 2 additions and 2 deletions

View File

@ -1,11 +1,11 @@
from mcr.microsoft.com/dotnet/sdk:7.0 as build-env from mcr.microsoft.com/dotnet/sdk:8.0 as build-env
workdir /App workdir /App
copy ./src/ ./ copy ./src/ ./
run dotnet restore run dotnet restore
run dotnet publish -c Release -o out run dotnet publish -c Release -o out
from mcr.microsoft.com/dotnet/aspnet:7.0 from mcr.microsoft.com/dotnet/aspnet:8.0
workdir /App workdir /App
copy --from=build-env /App/out . copy --from=build-env /App/out .