aboutsummaryrefslogtreecommitdiff
path: root/bind/Makefile
blob: b1e37b4cb78c7c79296ba9f4683f2340c3bfc404 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
IMAGE=docker.crute.me/bind:latest

all:
	#CGO_ENABLED=0 go build -o bind_bootstrap main.go
	docker pull alpine:edge
	docker build -t $(IMAGE) .
	#rm bind_bootstrap

all-no-cache:
	docker build --no-cache -t $(IMAGE) .

run:
	docker run -d --net=host \
		-p 53:53/tcp \
		-p 53:53/udp \
		-p 953:953 \
		-v /home/mcrute/tmp/bind/conf:/etc/bind \
		-v /home/mcrute/tmp/bind/cache:/var/cache/bind \
		$(IMAGE)

publish:
	docker push $(IMAGE)