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:bfaf0085a…
Size
2.5 GB
Last updated
about 16 hours ago
docker pull netlify/build:7fcc6e80a61614994e9b356b9f4cbfc3879691cb-noble-new-builds