You've already forked wakapi-readme-stats
dockerfile updated for faster build, local docker make target added
This commit is contained in:
12
Makefile
12
Makefile
@@ -30,16 +30,16 @@ dependencies: venv node_modules
|
||||
.PHONY: dependencies
|
||||
|
||||
|
||||
run: dependencies
|
||||
run-locally: dependencies
|
||||
@ # Run action locally
|
||||
source <(cat .env.example | sed 's/=/=/' | sed 's/^/export /') && python3 ./sources/main.py
|
||||
.PHONY: run
|
||||
.PHONY: run-locally
|
||||
|
||||
|
||||
image:
|
||||
@ # Build docker image
|
||||
run-container:
|
||||
@ # Run action in container
|
||||
docker build -t waka-readme-stats -f Dockerfile .
|
||||
.PHONY: image
|
||||
docker run --env-file .env.example waka-readme-stats
|
||||
.PHONY: run-container
|
||||
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user