book/docker/windows/README.md
This directory contains the Windows Server 2022 container configuration for building the MLSysBook with Quarto.
pwsh shorthand can fail in containersC:\Program Files\PowerShell\7\pwsh.exeStart-Process without -NoNewWindow can hang-NoNewWindow flag for container compatibilitytl_packages fileTo build the Windows container locally, run the following command from the repository root:
docker build -f docker/windows/Dockerfile -t mlsysbook-windows .
To test the Dockerfile before building, you can use the provided PowerShell script:
./docker/windows/test_dockerfile.ps1
The container is built and pushed to the GitHub Container Registry via the .github/workflows/build-windows-container.yml workflow.
This workflow is triggered manually or on a weekly schedule.
The container includes comprehensive verification:
kpsewhichscheme-infraonly for minimal installationdocker run -it mlsysbook-windows pwsh
quarto --version
quarto check
python --version
python -c "import nltk; print('NLTK available')"
R --version
Rscript -e "library(rmarkdown); print('R Markdown available')"
lualatex --version
kpsewhich pgf.sty
# Check available memory
docker system df
docker system prune -f
# Verify PowerShell 7 installation
docker run mlsysbook-windows pwsh -Command "Get-Host"
# Check Chocolatey installation
docker run mlsysbook-windows choco --version