Files
example-voting-app/result/dotnet/Dockerfile.1809
Stefan Scherer 4553484152 Update dotnet 3.1
2021-02-12 18:28:07 +01:00

16 lines
323 B
Docker

FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder
WORKDIR /Result
COPY Result/Result.csproj .
RUN dotnet restore
COPY /Result .
RUN dotnet publish -c Release -o /out Result.csproj
# app image
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
WORKDIR /app
ENTRYPOINT ["dotnet", "Result.dll"]
COPY --from=builder /out .