Fixed no such file error when running docker via sudo (#88)

Co-authored-by: Ben <ben@st2projects.com>
This commit is contained in:
neo1908
2023-05-19 09:49:33 +01:00
committed by GitHub
parent a7a069a688
commit d2af29b09b

View File

@@ -1,10 +1,10 @@
.PHONY: build_book
build_book: build_docker_image
docker run -it -v $(PWD):/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make build_pdf"
docker run -it -v .:/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make build_pdf"
.PHONY: release
release: build_docker_image
docker run -it -v $(PWD):/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make release"
docker run -it -v .:/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make release"
.PHONY: build_docker_image
build_docker_image: