Last active
March 24, 2017 23:43
-
-
Save talesin/a7e94d41f510f7cce6c363831d899e7c to your computer and use it in GitHub Desktop.
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 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