This commit is contained in:
2024-05-08 21:58:16 +01:00
parent 2b67d20176
commit 61b79a0574
8 changed files with 740 additions and 18 deletions

View File

@ -1,15 +1,16 @@
FROM alpine:3.14 as build
LABEL maintainer="David Chidell (dchidell@cisco.com)"
FROM alpine:3.19 AS build
LABEL maintainer="Luke Tainton <luke@tainton.uk>"
LABEL org.opencontainers.image.source="https://github.com/luketainton/docker-dnsmasq"
FROM build as webproc
FROM build AS webproc
ENV WEBPROCVERSION 0.4.0
ENV WEBPROCURL https://github.com/jpillora/webproc/releases/download/v$WEBPROCVERSION/webproc_"$WEBPROCVERSION"_linux_amd64.gz
RUN apk add --no-cache curl
RUN curl -sL $WEBPROCURL | gzip -d - > /usr/local/bin/webproc
RUN curl -sL "$WEBPROCURL" | gzip -d - > /usr/local/bin/webproc
RUN chmod +x /usr/local/bin/webproc
FROM build as dnsmasq
FROM build AS dnsmasq
RUN apk --no-cache add dnsmasq
COPY --from=webproc /usr/local/bin/webproc /usr/local/bin/webproc
ENTRYPOINT ["webproc","-o","restart","-c","/etc/dnsmasq.conf","-c","/etc/hosts","-c","/etc/resolv.conf","--","dnsmasq","-k","--log-facility=-"]
EXPOSE 53/udp 8080
EXPOSE 53/udp 8080/tcp