From 508feb750ecd6345ead0c982e88a9289d5eb65e3 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Sun, 23 Feb 2025 22:18:07 -0500 Subject: [PATCH] dnsmasq --- dnsmasq/Containerfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dnsmasq/Containerfile diff --git a/dnsmasq/Containerfile b/dnsmasq/Containerfile new file mode 100644 index 0000000..b85b6d3 --- /dev/null +++ b/dnsmasq/Containerfile @@ -0,0 +1,19 @@ +FROM alpine:edge +LABEL maintainer="ariel@sosnovsky.ca" + +# webproc release settings +ENV WEBPROC_VERSION 0.4.0 +ENV WEBPROC_URL https://github.com/jpillora/webproc/releases/download/$WEBPROC_VERSION/webproc_linux_amd64.gz +# fetch dnsmasq and webproc binary +RUN apk update \ + && apk --no-cache add dnsmasq \ + && apk add --no-cache --virtual .build-deps curl \ + && curl -sL $WEBPROC_URL | gzip -d - > /usr/local/bin/webproc \ + && chmod +x /usr/local/bin/webproc \ + && apk del .build-deps +#configure dnsmasq +RUN mkdir -p /etc/default/ +RUN echo -e "ENABLED=1\nIGNORE_RESOLVCONF=yes" > /etc/default/dnsmasq +COPY dnsmasq.conf /etc/dnsmasq.conf +#run! +ENTRYPOINT ["webproc","--config","/etc/dnsmasq.conf","--","dnsmasq","--no-daemon"] \ No newline at end of file