cloudnet-compose/result/dotnet/Dockerfile.1809

16 lines
341 B
Docker
Raw Permalink Normal View History

2018-10-22 12:27:04 +02:00
FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 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 microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
WORKDIR /app
ENTRYPOINT ["dotnet", "Result.dll"]
COPY --from=builder /out .