Skip to content

Commit f286682

Browse files
committed
Site: Add Dockerfile and update Makefile
Signed-off-by: Michael Mayer <[email protected]>
1 parent 171f1e5 commit f286682

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

Diff for: Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FROM squidfunk/mkdocs-material:latest

Diff for: Makefile

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ UID := $(shell id -u)
44
GID := $(shell id -g)
55

66
all: pull deploy chown
7+
chown:
8+
sudo chown -R $(UID):$(GID) .
79
pull:
8-
docker pull photoprism/mkdocs-material:8
10+
docker pull photoprism/mkdocs-material:latest
911
update-mkdocs-material:
1012
docker pull squidfunk/mkdocs-material:latest
11-
docker tag squidfunk/mkdocs-material:latest photoprism/mkdocs-material:8
12-
docker push photoprism/mkdocs-material:8
13+
docker build --no-cache --pull -t photoprism/mkdocs-material:latest -f Dockerfile .
14+
docker push photoprism/mkdocs-material:latest
1315
watch:
14-
docker run --rm -it -p 8000:8000 -v ${PWD}:/docs photoprism/mkdocs-material:8
15-
chown:
16-
sudo chown -R $(UID):$(GID) .
16+
docker run --rm -u $(UID):$(GID) -it -p 8000:8000 -v ${PWD}:/docs photoprism/mkdocs-material:latest
1717
deploy:
18-
docker run --rm -it -v ~/.ssh:/root/.ssh -v ${PWD}:/docs photoprism/mkdocs-material:8 gh-deploy
18+
docker run --rm -u 0:0 -it -v ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro -v ~/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub:ro -v ${PWD}:/docs photoprism/mkdocs-material:latest gh-deploy

0 commit comments

Comments
 (0)