DockerfileBuild 389 B

1234567891011121314151617181920
  1. #Demo for weichat mp
  2. FROM microsoft/aspnetcore-build AS builder
  3. WORKDIR /source
  4. #restore and copying csproj
  5. COPY *.csproj .
  6. RUN dotnet restore
  7. #coping code and publish to app
  8. COPY . .
  9. #RUN dotnet restore
  10. RUN dotnet publish --output /app/ --configuration Release
  11. #RUN ls /source
  12. FROM microsoft/aspnetcore
  13. WORKDIR /app
  14. COPY --from=builder /app .
  15. ENTRYPOINT ["dotnet", "SupplierWeb.dll"]