12 lines
343 B
Docker
12 lines
343 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
COPY src/ .
|
|
RUN dotnet restore Hosts/Hearth.Api/Hearth.Api.csproj
|
|
RUN dotnet publish Hosts/Hearth.Api/Hearth.Api.csproj -c Release --no-restore -o /app
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
|
WORKDIR /app
|
|
COPY --from=build /app .
|
|
USER app
|
|
ENTRYPOINT ["dotnet", "Hearth.Api.dll"]
|