khuedoan-homelab/tools/Makefile
2021-11-27 20:52:38 +07:00

22 lines
343 B
Makefile

.POSIX:
TAG = homelab-tools
default: build run
build:
@docker build . --tag ${TAG}
run:
@docker run \
--rm \
--interactive \
--tty \
--network host \
--env "TERM=${TERM}" \
--env "HOME=${HOME}" \
--volume "${HOME}:${HOME}" \
--volume "/var/run/docker.sock:/var/run/docker.sock" \
--workdir "$(shell pwd)/.." \
${TAG}