Skip to content

Instantly share code, notes, and snippets.

@ninjarobot
Created May 10, 2017 12:58
Show Gist options
  • Save ninjarobot/710fa5ef60789f692f01cce50605de50 to your computer and use it in GitHub Desktop.
Save ninjarobot/710fa5ef60789f692f01cce50605de50 to your computer and use it in GitHub Desktop.
Dockerfile for latest dotnetcore 2.0 runtime - based on Alpine
FROM frolvlad/alpine-glibc
RUN apk add --no-cache curl libstdc++ --repository http://dl-3.alpinelinux.org/alpine/edge/testing/ \
&& curl -O https://dotnetcli.blob.core.windows.net/dotnet/master/Binaries/Latest/dotnet-linux-x64.latest.tar.gz \
&& mkdir -p /usr/share/dotnet \
&& tar -xzvf dotnet-linux-x64.latest.tar.gz -C /usr/share/dotnet \
&& rm dotnet-linux-x64.latest.tar.gz \
&& ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment