16 lines
350 B
Makefile
16 lines
350 B
Makefile
DOCKER_IMAGE := cr.annabunches.net/annabunches-static
|
|
DOCKER_TAG := latest
|
|
|
|
.PHONY: all build push
|
|
|
|
all: serve
|
|
|
|
serve:
|
|
sudo docker run --rm -it -p 1313:1313 -v ${PWD}:/src/ klakegg/hugo serve -D -b http://${DEV_IP}:1313/
|
|
|
|
build:
|
|
sudo docker build --no-cache -t ${DOCKER_IMAGE}:${DOCKER_TAG} .
|
|
|
|
push:
|
|
sudo docker push ${DOCKER_IMAGE}:${DOCKER_TAG}
|