• 因为我们现在都是容器化时代了,所以我们可以把这类工具全部制作成基础镜像
    • 准备Dockerfile
dotnet-*工具的正确使用姿势
  1 FROM mcr.microsoft.com/dotnet/sdk:3.1 AS sdk
  2 RUN dotnet tool install --tool-path /tools dotnet-trace
  3 RUN dotnet tool install --tool-path /tools dotnet-counters
  4 RUN dotnet tool install --tool-path /tools dotnet-dump
  5 RUN dotnet tool install --tool-path /tools dotnet-gcdump
  6 
  7 FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS runtime
  8 WORKDIR /tools
  9 COPY --from=sdk /tools .
 10 
 11 
basedockerfile.yaml

相关文章:

  • 2021-05-29
  • 2021-07-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-17
  • 2021-10-28
  • 2021-12-13
  • 2021-12-18
  • 2021-12-17
  • 2021-07-27
相关资源
相似解决方案