mirror of
https://github.com/hendricius/the-sourdough-framework
synced 2025-11-21 10:31:12 -06:00
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:
11
makefile
Normal file
11
makefile
Normal 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 .
|
||||
Reference in New Issue
Block a user