Skip to content

Commit

Permalink
build: update Docker commands in Makefile to use --no-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
hsiangjenli committed Nov 11, 2024
1 parent df2a68c commit b411ae4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ help:
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

image:
docker buildx build --platform linux/amd64 -t hsiangjenli/sphinx-doc:paper-digest .github
docker buildx build --platform linux/amd64 -t hsiangjenli/sphinx-doc:paper-digest .github --no-cache

c:
sudo chmod -R 777 build
make clean
make run

run:
docker run -it --rm -v "$(PWD):/docs" hsiangjenli/sphinx-doc:paper-digest python source/resource/keyterm/gen.py && make html
docker run -it --rm -v "/home/hsiangjenli/Downloads/github/paper-digest:/docs" hsiangjenli/sphinx-doc:paper-digest python source/resource/keyterm/gen.py
docker run -it --rm -v "/home/hsiangjenli/Downloads/github/paper-digest:/docs" hsiangjenli/sphinx-doc:paper-digest make html

0 comments on commit b411ae4

Please sign in to comment.