Docker for Portfolio Builds on Any Machine
My daily driver is Windows. Woodpecker agents are Linux containers. Friends clone the repo on different Node versions. The portfolio Dockerfile and compose file exist so npm run build means the same thing everywhere — or close enough that CI is the source of truth.
deploy.bat checks whether Docker Desktop is running. If yes, build and deploy inside the container. If no, fall back to host Node. That keeps local iteration fast without pretending every laptop matches Alpine CI.
In Woodpecker, install and build already run in images with pinned Node. Docker locally is practice for the same discipline: declare the environment, do not rely on whatever happens to be on PATH.