Allow specifying container runtime for Makefile

This commit lets you run, eg:
DOCKER=podman make docker-image
DOCKER=podman make docker-serve

and spin up the website locally for testing, without using Docker or
needing to have Docker installed.
pull/21249/head
Tim Bannister 2020-05-27 21:58:38 +01:00
parent a03d8db7e4
commit c00f694d7c
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
DOCKER = docker
DOCKER ?= docker
HUGO_VERSION = $(shell grep ^HUGO_VERSION netlify.toml | tail -n 1 | cut -d '=' -f 2 | tr -d " \"\n")
DOCKER_IMAGE = kubernetes-hugo
DOCKER_RUN = $(DOCKER) run --rm --interactive --tty --volume $(CURDIR):/src