website/Makefile

18 lines
398 B
Makefile

.PHONY: build
build:
# Build Docker image
docker build -t distrust-co .
# Export site to _site directory
docker run -v $(shell pwd):/home -it distrust-co jekyll build
.PHONY: serve
serve:
# Run Docker container with listener for current dir and port mapping
docker run -v $(shell pwd):/home -p 0.0.0.0:4000:4000 -it distrust-co
.PHONY: clean
clean:
# Remove _site directory
rm -rf _site