Dockerfile.1809 328 B

12345678910111213141516
  1. FROM microsoft/dotnet:2.1-sdk-nanoserver-1809 as builder
  2. WORKDIR /Vote
  3. COPY Vote/Vote.csproj .
  4. RUN dotnet restore
  5. COPY /Vote .
  6. RUN dotnet publish -c Release -o /out Vote.csproj
  7. # app image
  8. FROM microsoft/dotnet:2.1-aspnetcore-runtime-nanoserver-1809
  9. WORKDIR /app
  10. ENTRYPOINT ["dotnet", "Vote.dll"]
  11. COPY --from=builder /out .