2018-05-07 17:59:38 -04:00
|
|
|
configure_cache:
|
|
|
|
mkdir -p tmp/cache
|
2017-03-08 14:22:54 -05:00
|
|
|
|
2018-05-07 17:59:38 -04:00
|
|
|
build: configure_cache
|
2017-04-06 18:16:02 -04:00
|
|
|
@echo "==> Starting build in Docker..."
|
|
|
|
@docker run \
|
|
|
|
--interactive \
|
|
|
|
--rm \
|
|
|
|
--tty \
|
2018-05-07 17:59:38 -04:00
|
|
|
--volume "$(shell pwd):/opt/buildhome/repo" \
|
|
|
|
--volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \
|
|
|
|
--env "ENV=production" \
|
|
|
|
netlify/build \
|
|
|
|
build middleman build --verbose
|
2017-04-06 18:16:02 -04:00
|
|
|
|
2018-05-07 17:59:38 -04:00
|
|
|
website: configure_cache
|
2017-03-08 14:22:54 -05:00
|
|
|
@echo "==> Starting website in Docker..."
|
|
|
|
@docker run \
|
2017-04-06 18:16:02 -04:00
|
|
|
--interactive \
|
|
|
|
--rm \
|
2017-03-08 14:22:54 -05:00
|
|
|
--tty \
|
2018-05-07 17:59:38 -04:00
|
|
|
--volume "$(shell pwd):/opt/buildhome/repo" \
|
|
|
|
--volume "$(shell pwd)/tmp/cache:/opt/buildhome/cache" \
|
2017-03-08 14:22:54 -05:00
|
|
|
--publish "4567:4567" \
|
|
|
|
--publish "35729:35729" \
|
2018-05-07 17:59:38 -04:00
|
|
|
--env "ENV=production" \
|
|
|
|
netlify/build \
|
|
|
|
build middleman
|
2017-03-08 14:22:54 -05:00
|
|
|
|
2017-04-06 18:16:02 -04:00
|
|
|
.PHONY: build website
|