Skip to content

Instantly share code, notes, and snippets.

@rfum
Created February 2, 2018 10:16
Show Gist options
  • Save rfum/1c617f9400f01b8a0e878d07ba6aa0be to your computer and use it in GitHub Desktop.
Save rfum/1c617f9400f01b8a0e878d07ba6aa0be to your computer and use it in GitHub Desktop.
.net core 2.0 basic installation ubuntu 16.04
FROM ubuntu
MAINTAINER R.Furkan MATARACI <[email protected]>
RUN apt-get update
RUN apt-get install curl -y
RUN curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
RUN mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
RUN bash -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-artful-prod artful main" > /etc/apt/sources.list.d/dotnetdev.list'
RUN bash -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
RUN apt-get install apt-transport-https -y
RUN apt-get update -y
RUN apt-get install dotnet-sdk-2.1.4 -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment