Add Dockerfile

This adds a Dockerfile to run the project. All you need to do now is run
`make` in the root folder and the pdf will be built.
This commit is contained in:
Hendrik Kleinwaechter
2023-03-02 17:19:02 -05:00
parent 201d0872e6
commit 37f845429b
4 changed files with 64 additions and 11 deletions

11
makefile Normal file
View File

@@ -0,0 +1,11 @@
.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"
.PHONY: release
release: build_docker_image
docker run -it -v $(PWD):/opt/repo the-sourdough-framework /bin/bash -c "cd /opt/repo/book && make build_pdf"
.PHONY: build_docker_image
build_docker_image:
docker build -t the-sourdough-framework -f Dockerfile .