docs/Makefile

25 lines
503 B
Makefile
Raw Normal View History

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