caaa736f35
If this is not set, `make website` fails due to permission errors in the docker container Fixes #5589.
33 lines
845 B
Makefile
33 lines
845 B
Makefile
configure-cache:
|
|
@mkdir -p tmp/cache .bundle
|
|
|
|
build: configure-cache
|
|
@echo "==> Starting build in Docker..."
|
|
@docker run \
|
|
--interactive \
|
|
--rm \
|
|
--tty \
|
|
--volume "$(shell pwd):/opt/buildhome/repo" \
|
|
--volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \
|
|
--user buildbot:$(shell id -g) \
|
|
--env "ENV=production" \
|
|
netlify/build \
|
|
build "sh bootstrap.sh && middleman build --verbose"
|
|
|
|
website: configure-cache
|
|
@echo "==> Starting website in Docker..."
|
|
@docker run \
|
|
--interactive \
|
|
--rm \
|
|
--tty \
|
|
--volume "$(shell pwd):/opt/buildhome/repo" \
|
|
--volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \
|
|
--user buildbot:$(shell id -g) \
|
|
--publish "4567:4567" \
|
|
--publish "35729:35729" \
|
|
--env "ENV=production" \
|
|
netlify/build \
|
|
build "sh bootstrap.sh && middleman"
|
|
|
|
.PHONY: configure-cache build website
|