liuxiaolong
2020-09-16 4501e38ca66f09b35aaaf43fa5a316554930fcf4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
VERSION?="0.3.28"
 
build:
    @echo "==> Starting build in Docker..."
    @docker run \
        --interactive \
        --rm \
        --tty \
        --volume "$(shell pwd):/website" \
        hashicorp/middleman-hashicorp:${VERSION} \
        bundle exec middleman build --verbose --clean
 
website:
    @echo "==> Starting website in Docker..."
    @docker run \
        --interactive \
        --rm \
        --tty \
        --publish "4567:4567" \
        --publish "35729:35729" \
        --volume "$(shell pwd):/website" \
        hashicorp/middleman-hashicorp:${VERSION}
 
.PHONY: build website