I'm trying to learn to write my own Makefiles for docker automation. I've read a bit about this subject and than tried to copy some example code I found online but it gives me an error. Any ideas?
$ make build
make: *** No rule to make target '-f', needed by 'build'. Stop.
NS ?= test
VERSION ?= latest
IMAGE_NAME ?= test
CONTAINER_NAME ?= test
build:
docker build -t $(NS)/$(IMAGE_NAME):$(VERSION) -f Dockerfile .
run:
docker run -d --rm --name $(CONTAINER_NAME) $(NS)/$(IMAGE_NAME):$(latest)
default: build