Skip to content

Instantly share code, notes, and snippets.

@aniongithub
Created February 4, 2021 17:04
Show Gist options
  • Save aniongithub/2fd8ac09aba45eb16696fc5cbc201909 to your computer and use it in GitHub Desktop.
Save aniongithub/2fd8ac09aba45eb16696fc5cbc201909 to your computer and use it in GitHub Desktop.
Install .NET Core inside a Dockerfile
# Install .NET Core and ensure system can find it
# Bug: https://github.com/dotnet/sdk/issues/9911
RUN wget -P /tmp https://dot.net/v1/dotnet-install.sh &&\
chmod +x /tmp/dotnet-install.sh &&\
/tmp/dotnet-install.sh &&\
ln -sfn ~/.dotnet/dotnet /usr/local/bin/dotnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment