github.phpd.cn/hashicorp/packer@v1.3.2/website/Makefile (about) 1 configure_cache: 2 mkdir -p tmp/cache 3 4 build: configure_cache 5 @echo "==> Starting build in Docker..." 6 @docker run \ 7 --interactive \ 8 --rm \ 9 --tty \ 10 --volume "$(shell pwd):/opt/buildhome/repo" \ 11 --volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \ 12 --env "ENV=production" \ 13 netlify/build \ 14 build middleman build --verbose 15 16 website: configure_cache 17 @echo "==> Starting website in Docker..." 18 @docker run \ 19 --interactive \ 20 --rm \ 21 --tty \ 22 --volume "$(shell pwd):/opt/buildhome/repo" \ 23 --volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \ 24 --publish "4567:4567" \ 25 --publish "35729:35729" \ 26 --env "ENV=production" \ 27 netlify/build \ 28 build middleman 29 30 .PHONY: build website