docs/Makefile

23 lines
395 B
Makefile
Raw Permalink Normal View History

2024-12-08 01:31:54 +00:00
PORT := 8080
default: build
out:
mkdir -p out
.PHONY: build
build: out/index.json
out/index.json: out Containerfile
docker \
build \
-f Containerfile \
--output type=oci,rewrite-timestamp=true,force-compression=true,name=distrust/docs,tar=true,dest=- \
. \
| tar -C out/ -mx
.PHONY: serve
serve: build
tar -C out/ -cf - . | docker load
docker run -p $(PORT):8080 distrust/docs