IMAGE_NAME="sothr/mumble" IMAGE_TAG="$$(grep 'ARG MUMBLE_VERSION' Dockerfile | awk -F = '{print $$2}')" build: @echo "${IMAGE_TAG}" > tag @docker build --force-rm --pull --tag $(IMAGE_NAME):$(IMAGE_TAG) . purge: @docker image rm --force $(IMAGE_NAME):$(IMAGE_TAG)