From c3c9b13a73f4c51dfa094a8082aba4510f3cf576 Mon Sep 17 00:00:00 2001 From: Ricard Illa Date: Wed, 13 Jul 2022 16:21:30 +0200 Subject: [PATCH] dnsmasq --- dnsmasq/Dockerfile | 9 +++++++++ dnsmasq/Makefile | 19 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 dnsmasq/Dockerfile create mode 100644 dnsmasq/Makefile diff --git a/dnsmasq/Dockerfile b/dnsmasq/Dockerfile new file mode 100644 index 0000000..963c1a6 --- /dev/null +++ b/dnsmasq/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:3.16 + +RUN apk --no-cache add dnsmasq + +VOLUME /etc/dnsmasq + +EXPOSE 53 + +CMD ["dnsmasq", "--no-daemon"] diff --git a/dnsmasq/Makefile b/dnsmasq/Makefile new file mode 100644 index 0000000..a3c71be --- /dev/null +++ b/dnsmasq/Makefile @@ -0,0 +1,19 @@ +IMG_NAME=dnsmasq +REGISTRY=registry.monotremata.xyz +IMG=$(REGISTRY)/$(IMG_NAME) +PLATFORMS=linux/amd64 + +.PHONY: build push buildx + +build: Dockerfile + docker build -t $(IMG) . + +push: build + docker image push $(IMG) + +buildx: Dockerfile + docker buildx build \ + --platform $(PLATFORMS) \ + --tag $(IMG) \ + --push \ + .