chocolatey
Chocolatey package manager in a Windows Docker image
7.2K
This is a Windows Docker image with the Chocolatey package manager.
For some very simple Docker images you can use the Chocolatey package manager inside a Windows Container.
FROM stefanscherer/chocolatey
RUN choco install -y php
RUN php --version
These Docker images may be bigger than installing the tools manually and optimizing the size, but your Dockerfile will look very simple and easy to understand.
If you do not have a Windows machine at hand but you want to build an own Chocolatey package, you can use this in combination with a Windows Docker machine eg. from a Mac.
Let's say you have your nuget file and install ps1 script in your current directory, you can run this command to build the Chocolatey package file:
$ docker run -v C:$(pwd):C:/choco stefanscherer/chocolatey \
powershell -Command 'cd c:\choco ; choco pack ; .\test.ps1'
This bind mounts the current Mac directory to C:\choco in the Windows container and you can run choco pack with it. The resulting nupkg file is then in your Mac's current directory :-)
Content type
Image
Digest
Size
2 GB
Last updated
almost 7 years ago
docker pull stefanscherer/chocolatey