45 lines
1.5 KiB
Docker
45 lines
1.5 KiB
Docker
|
|
# escape=`
|
||
|
|
|
||
|
|
FROM microsoft/windowsservercore:ltsc2016
|
||
|
|
|
||
|
|
ADD https://download.microsoft.com/download/6/A/A/6AA4EDFF-645B-48C5-81CC-ED5963AEAD48/vc_redist.x64.exe /vc_redist.x64.exe
|
||
|
|
RUN start /wait C:\vc_redist.x64.exe /quiet /norestart
|
||
|
|
|
||
|
|
# Install chocolatey
|
||
|
|
RUN @powershell -NoProfile -ExecutionPolicy unrestricted -Command "$env:chocolateyUseWindowsCompression = 'true'; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12; (iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))) >$null 2>&1"
|
||
|
|
|
||
|
|
RUN choco install git 7zip -y
|
||
|
|
RUN choco install cmake --installargs 'ADD_CMAKE_TO_PATH=""System""' -y
|
||
|
|
|
||
|
|
# Install Visual C++ Build Tools, as per: https://chocolatey.org/packages/visualcpp-build-tools
|
||
|
|
RUN choco install visualcpp-build-tools -version 14.0.25420.1 -y
|
||
|
|
RUN setx /M PATH "C:\Program Files (x86)\Windows Kits\10\bin\x86\ucrt;C:\Program Files (x86)\Windows Kits\10\bin\x64\ucrt;%PATH%"
|
||
|
|
|
||
|
|
# Add msbuild to PATH
|
||
|
|
RUN setx /M PATH "%PATH%;C:\Program Files (x86)\MSBuild\14.0\bin"
|
||
|
|
|
||
|
|
# Test msbuild can be accessed without path
|
||
|
|
RUN msbuild -version
|
||
|
|
|
||
|
|
# Install Java
|
||
|
|
RUN choco install jdk8 -y
|
||
|
|
|
||
|
|
# Add Java to PATH
|
||
|
|
RUN setx /M PATH "%PATH%;C:\Program Files\Java\jdk_1.8.0_172\bin"
|
||
|
|
|
||
|
|
# Install Maven
|
||
|
|
RUN choco install maven -y
|
||
|
|
|
||
|
|
# Install Python3
|
||
|
|
RUN choco install python -y
|
||
|
|
|
||
|
|
# Add Python to PATH
|
||
|
|
RUN setx /M PATH "%PATH%;C:\Python36"
|
||
|
|
|
||
|
|
# Install boto3
|
||
|
|
RUN pip install boto3 --upgrade
|
||
|
|
|
||
|
|
# Install awscli
|
||
|
|
RUN pip install awscli --upgrade
|
||
|
|
|
||
|
|
CMD [ "cmd.exe" ]
|