A simple, go-based DNS resolver/caching server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
420 B

FROM golang:alpine AS build-env
ADD . /src
RUN apk --no-cache add git gcc musl-dev
RUN cd /src && go get -d && go build -o godns
FROM alpine
MAINTAINER Tyler Stuyfzand <tyler@tystuyfzand.com>
EXPOSE 53
RUN apk --no-cache add tini
ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD ["godns"]
COPY etc/godns.example.conf /etc/godns.conf
COPY --from=build-env /src/godns /usr/local/bin/godns
RUN chmod +x /usr/local/bin/godns