Skip to content

Instantly share code, notes, and snippets.

@vlj
Created February 11, 2017 17:23
Show Gist options
  • Save vlj/95e53e07c9f1fbd7bd4ff5120c7c6987 to your computer and use it in GitHub Desktop.
Save vlj/95e53e07c9f1fbd7bd4ff5120c7c6987 to your computer and use it in GitHub Desktop.
FROM microsoft/windowsservercore
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN Invoke-WebRequest 'http://go.microsoft.com/fwlink/?LinkId=691126' -OutFile 'visualcppbuildtools_full.exe';
RUN Start-Process .\visualcppbuildtools_full.exe -ArgumentList '/NoRestart /S' -Wait ;
RUN rm visualcppbuildtools_full.exe
RUN Invoke-WebRequest https://github.com/Microsoft/vcpkg/archive/master.zip -OutFile vcpkg.zip;
RUN Expand-Archive vcpkg.zip -DestinationPath vcpkg;
WORKDIR vcpkg/vcpkg-master
RUN New-Item -ItemType Directory -Path downloads;
RUN New-Item -ItemType File -Path downloads\AlwaysAllowEverything;
RUN ls
RUN scripts\bootstrap.ps1;
RUN .\vcpkg.exe integrate install
RUN .\vcpkg.exe install zlib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment