diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5af15e7 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +SHELL := /bin/bash +CWD := $(shell cd -P -- '$(shell dirname -- "$0")' && pwd -P) + +docker-images: + docker-compose build + +docker-npm-build: + rm -f .container_id + docker-compose run -d sphinx_rtd_theme build > .container_id + sleep 1s + docker container wait "$(shell cat .container_id)" + docker cp "$(shell cat .container_id):/project/sphinx_rtd_theme" . + docker cp "$(shell cat .container_id):/project/package-lock.json" . + @echo "Done building" + +docker-npm-dev: + docker-compose run sphinx_rtd_theme dev + +docker-build-all: docker-images docker-npm-build |