This repository contains the tools to make the build image Netlify uses to build a site from git (for continuous deployment.)
You can also use the image this generates to test locally if you're having build issues.
The image takes a long time to build. You can instead:
docker pull netlify/build
to get the latest version we've published, pre-built for your testing pleasure. To use it, these steps are recommended:
./test-tools/start-image.sh path/to/my/repobuild jekyll build (Replace jekyll build with your build command of choice.)If you'd like to run a debugging build using our caching mechanisms, with verbose shell output, you can instead use test-tools/test-build.sh path/to/your/repo 'your build command'
This will create a tmp directory that will have the repo we cloned, the cache (with hidden files), and the scripts we ran.
You can run also run with that cache by prepending T=tmp/tmp.XXXXX to the build command.
Pull requests welcome, as long as they're not overly specific to a niche use-case.
How we use this and some best practices are documented here: https://www.netlify.com/blog/2016/10/18/how-our-build-bots-build-sites/
Content type
Image
Digest
sha256:e6dbb9805…
Size
2 GB
Last updated
3 days ago
docker pull netlify/build:ecd56752df873b34ad45400f34de005892587db7-noble-new-builds-arm64