Skip to content

Instantly share code, notes, and snippets.

@aidansteele
Created February 7, 2017 05:01
Show Gist options
  • Save aidansteele/50b3ced80b8d2bc3ae201833af641296 to your computer and use it in GitHub Desktop.
Save aidansteele/50b3ced80b8d2bc3ae201833af641296 to your computer and use it in GitHub Desktop.
# escape=`
FROM microsoft/windowsservercore
SHELL ["powershell", "-Command"]
RUN Set-ExecutionPolicy -ExecutionPolicy Bypass
ENV chocolateyUseWindowsCompression false
RUN iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
RUN choco feature enable -n allowEmptyChecksums
RUN choco install -y -r nuget.commandline
RUN choco install -y -r git
RUN choco install -y -r netfx-4.5.1-devpack
RUN choco install -y -r netfx-4.5.2-devpack
RUN choco install -y -r netfx-4.6-devpack
RUN choco install -y -r netfx-4.6.1-devpack
RUN choco install -y -r netfx-4.6.2-devpack
RUN choco install -y -r microsoft-build-tools
RUN [Environment]::SetEnvironmentVariable(\"PATH\", \"$($env:PATH);c:\Program Files (x86)\MSBuild\14.0\Bin\", \"Machine\")
ENV DOTNET_SDK_VERSION 1.0.0-preview2-003131
ENV DOTNET_SDK_DOWNLOAD_URL https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/$DOTNET_SDK_VERSION/dotnet-dev-win-x64.$DOTNET_SDK_VERSION.zip
RUN iwr $env:DOTNET_SDK_DOWNLOAD_URL -OutFile dotnet.zip
RUN Expand-Archive dotnet.zip -DestinationPath 'c:\Program Files\dotnet'
RUN Remove-Item -Force dotnet.zip
RUN [Environment]::SetEnvironmentVariable(\"PATH\", \"$($env:PATH);c:\Program Files\dotnet\", \"Machine\")
ENV NUGET_XMLDOC_MODE skip
RUN mkdir warmup; `
cd warmup; `
dotnet new
ENTRYPOINT ["powershell"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment