main
Ricard Illa 2022-07-13 16:21:30 +02:00
parent ab95a6d189
commit c3c9b13a73
No known key found for this signature in database
GPG Key ID: F69A672B72E54902
2 changed files with 28 additions and 0 deletions

9
dnsmasq/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:3.16
RUN apk --no-cache add dnsmasq
VOLUME /etc/dnsmasq
EXPOSE 53
CMD ["dnsmasq", "--no-daemon"]

19
dnsmasq/Makefile Normal file
View File

@ -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 \
.