23 lines
395 B
Makefile
23 lines
395 B
Makefile
|
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
|
||
|
|
||
|
|