Windows container with Chocolatey inside
162
FROM mcr.microsoft.com/windows/servercore:1809
LABEL Maintainer="Nicola Marco Decandia <[email protected]>"
LABEL Description="Windows Server Core development environment for Chocolatey and python"
# Disable crash dialog for release-mode runtimes
RUN reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f
RUN reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v DontShowUI /t REG_DWORD /d 1 /f
RUN powershell -NoProfile -ExecutionPolicy Bypass -Command \
$Env:chocolateyVersion = '0.10.8' ; \
$Env:chocolateyUseWindowsCompression = 'false' ; \
"[Net.ServicePointManager]::SecurityProtocol = \"tls12, tls11, tls\"; iex ((New-Object System.Net.WebClient).DownloadString('http://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
RUN powershell -NoProfile -InputFormat None -Command \
choco install visualcpp-build-tools --version 15.0.26228.20170424 -y; \
Write-Host 'Waiting for Visual C++ Build Tools to finish'; \
Wait-Process -Name vs_installer
RUN choco install -y python && \
choco install -y 7zip --version 19.0
docker run -it --name choco hermedia/chocolatey:0.10.15 cmd
Installing the following packages:
wget
By installing you accept licenses for the packages.
Progress: Downloading Wget 1.20.3.20190531... 100%
Wget v1.20.3.20190531 [Approved]
wget package files install completed. Performing other installation steps.
Getting x64 bit zip
Extracting C:\ProgramData\chocolatey\lib\Wget\tools\wget-1.20.3-win64_x64.zip to C:\ProgramData\chocolatey\lib\Wget\tool
s...
C:\ProgramData\chocolatey\lib\Wget\tools
ShimGen has successfully created a shim for wget.exe
The install of wget was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\Wget\tools'
Chocolatey installed 1/1 packages.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Content type
Image
Digest
Size
-
Last updated
over 6 years ago
docker pull hermedia/chocolatey:0.10.15