radiostasis/api/Dockerfile

13 lines
241 B
Docker

from mcr.microsoft.com/dotnet/sdk:7.0 as build-env
workdir /App
copy . ./
run dotnet restore
run dotnet publish -c Release -o out
from mcr.microsoft.com/dotnet/aspnet:7.0
workdir /App
copy --from=build-env /App/out .
entrypoint ["./api"]