mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-08 14:22:40 +01:00
6
Makefile
6
Makefile
@@ -19,6 +19,12 @@ run: ## Run a Dockerfile from the command at the top of the file (ex. DIR=telnet
|
||||
@:$(call check_defined, DIR, directory of the Dockefile)
|
||||
@$(CURDIR)/run.sh "$(DIR)"
|
||||
|
||||
REGISTRY := r.j3ss.co
|
||||
.PHONY: image
|
||||
image: ## Build a Dockerfile (ex. DIR=telnet).
|
||||
@:$(call check_defined, DIR, directory of the Dockefile)
|
||||
docker build --rm --force-rm -t $(REGISTRY)/$(subst /,:,$(DIR)) ./$(DIR)
|
||||
|
||||
.PHONY: test
|
||||
test: dockerfiles shellcheck ## Runs the tests on the repository.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user