Skip to content

Commit c00f694

Browse files
author
Tim Bannister
committed
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.
1 parent a03d8db commit c00f694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
DOCKER = docker
1+
DOCKER ?= docker
22
HUGO_VERSION = $(shell grep ^HUGO_VERSION netlify.toml | tail -n 1 | cut -d '=' -f 2 | tr -d " \"\n")
33
DOCKER_IMAGE = kubernetes-hugo
44
DOCKER_RUN = $(DOCKER) run --rm --interactive --tty --volume $(CURDIR):/src

0 commit comments

Comments
 (0)