Compare commits
3 Commits
2b47b7c703
...
202083b6ee
Author | SHA1 | Date |
---|---|---|
Lance Vick | 202083b6ee | |
Lance Vick | eec1dc9698 | |
Lance Vick | 0c808d93eb |
|
@ -1,18 +0,0 @@
|
||||||
root = true
|
|
||||||
|
|
||||||
[Containerfile]
|
|
||||||
charset = utf8
|
|
||||||
indent_style = tab
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[Makefile]
|
|
||||||
indent_style = tab
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*.md]
|
|
||||||
indent_style = space
|
|
||||||
indent_size = 2
|
|
||||||
|
|
||||||
[*]
|
|
||||||
end_of_line = lf
|
|
||||||
insert_final_newline = true
|
|
|
@ -1 +0,0 @@
|
||||||
out/
|
|
22
Makefile
22
Makefile
|
@ -1,22 +0,0 @@
|
||||||
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
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue