mono

Running Chocolatey on Linux

Update: This docker image is now available on the Docker Hub as linuturk/mono-choco. Do you want to create Chocolatey packages but don’t want to run a Windows server? Use this Dockerfile to build Chocolatey and do your package development without a Windows system. FROMmono:3.12.1MAINTAINERJustin PhelpsRUN apt-get update && apt-get install -y wget unzipWORKDIR/usr/local/src/chocoRUN wget https://github.com/chocolatey/choco/archive/stable.zipRUN unzip stable.zipRUN rm stable.zipWORKDIR/usr/local/src/choco/choco-stableRUN chmod +x build.shRUN chmod +x zip.shRUN ./build.shWORKDIR/usr/local/binRUN ln -s /usr/local/src/choco/choco-stable/build_output/chocolateyCOPY choco /usr/local/bin/chocoWORKDIR/rootIn the same directory as the Dockerfile, place a file called choco with executable permissions.