Created
August 8, 2019 19:06
-
-
Save baronfel/c44b9b792053ad6dd1d40184fad2bbb7 to your computer and use it in GitHub Desktop.
Dockerfile for a profiling container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM mcr.microsoft.com/dotnet/core/runtime:3.0-buster-slim as sdk_base | |
RUN curl https://download.visualstudio.microsoft.com/download/pr/c624c5d6-0e9c-4dd9-9506-6b197ef44dc8/ad61b332f3abcc7dec3a49434e4766e1/dotnet-sdk-3.0.100-preview7-012821-linux-x64.tar.gz --output dotnet-sdk-3.0.100-preview7-012821-linux-x64.tar.gz \ | |
&& tar zxf dotnet-sdk-3.0.100-preview7-012821-linux-x64.tar.gz -C /usr/share/dotnet | |
ENV DOTNET_ROOT=$HOME/dotnet | |
ENV PATH=$PATH:$HOME/dotnet | |
# adds in the debugging tools using the newly-installed sdk | |
FROM sdk_base as debug_tools | |
# lldb version is 7, which is ok | |
RUN apt update && apt install lldb -y | |
# install dotnet tools for dump and sos | |
ENV PATH=$PATH:$HOME/.dotnet/tools | |
RUN dotnet tool install -g dotnet-symbol | |
RUN dotnet tool install -g dotnet-sos --version 3.0.0-preview7.19365.2 && /root/.dotnet/tools/dotnet-sos install | |
RUN dotnet tool install -g dotnet-dump --version 3.0.0-preview7.19365.2 | |
RUN dotnet tool install --global dotnet-trace --version 3.0.0-preview7.19365.2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment