docker/README.md
This directory contains the necessary files for building a Docker Images. There is a Windows based image which runs choco on .NET and a Linux based image that builds and runs choco with Mono.
To build the Windows image yourself, follow these steps:
git clone https://github.com/chocolatey/choco.git..nupkg in .\code_drop\Packages\Chocolatey.
docker build -t choco:latest-windows -f docker/Dockerfile.windows . (the trailing . is important)
.nupkg in .\code_drop\Packages\Chocolatey and change the image name to chocolatey/choco:latest-windowsdocker run -ti --rm choco:latest-windows cmd.exechoco -h. You should see the help message from choco.exe.To build the Linux image yourself, follow these steps:
git clone https://github.com/chocolatey/choco.git.docker build -t choco:latest-linux -f docker/Dockerfile.linux . (the trailing . is important)
docker build -t chocolatey/choco:latest-linux -f docker/Dockerfile.linux . --build-arg buildscript=build.official.sh--build-arg buildscript=build.debug.shdocker run -ti --rm choco:latest-linux /bin/bashchoco -h. You should see the help message from choco.exe.