Skip to content

Commit

Permalink
fix: update DOCKER CMD on docs/Makefile (#1745)
Browse files Browse the repository at this point in the history
Co-authored-by: Moritz Wiesinger <moritz.wiesinger@dynatrace.com>
  • Loading branch information
viktoriussuwandi and mowies committed Jul 27, 2023
1 parent b77bcea commit a9ac9f6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,16 @@ VOLUMES := -v $(ROOT_DIR):/src
HUGO_VERSION := 0.111.3
IMAGE := klakegg/hugo:$(HUGO_VERSION)-ext
PORT := 1314
DOCKER_CMD := docker run --rm -t -e HUGO_CACHEDIR=/src/tmp/.hugo -e HUGOxPARAMSxGITHUB_REPO=""

INTERACTIVE:=$(shell [ -t 0 ] && echo 1)

ifdef INTERACTIVE
# is a terminal
INTERACTIVE_FLAG := -it
else
INTERACTIVE_FLAG := -t
endif
DOCKER_CMD := docker run --rm $(INTERACTIVE_FLAG) -e HUGO_CACHEDIR=/src/tmp/.hugo -e HUGOxPARAMSxGITHUB_REPO=""

.PHONY: build server clean shell

Expand Down

0 comments on commit a9ac9f6

Please sign in to comment.