Skip to content

Instantly share code, notes, and snippets.

@talesin
Last active March 24, 2017 23:43
Show Gist options
  • Select an option

  • Save talesin/a7e94d41f510f7cce6c363831d899e7c to your computer and use it in GitHub Desktop.

Select an option

Save talesin/a7e94d41f510f7cce6c363831d899e7c to your computer and use it in GitHub Desktop.
FROM amazonlinux:latest
WORKDIR /app
ENV DOTNET_RUNTIME_URL https://go.microsoft.com/fwlink/?linkid=843405
ENV DOTNET_SDK_URL https://go.microsoft.com/fwlink/?linkid=843449
# Install .NET Core - see https://www.microsoft.com/net/core#linuxcentos
RUN yum install -y libunwind libicu libuuid zip unzip
RUN curl -sSL -o dotnet.tar.gz $DOTNET_SDK_URL \
&& mkdir -p /opt/dotnet \
&& tar zxf dotnet.tar.gz -C /opt/dotnet \
&& rm -fr /dotnet.tar.gz \
&& ln -s /opt/dotnet/dotnet /usr/local/bin
# Trigger the population of the local package cache
ENV NUGET_XMLDOC_MODE skip
RUN mkdir warmup \
&& cd warmup \
&& dotnet new \
&& cd .. \
&& rm -rf warmup \
&& rm -rf /tmp/NuGetScratch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment