2019-06-02 20:52:51 +00:00
|
|
|
FROM golang:alpine AS build-env
|
2018-07-01 03:09:52 +00:00
|
|
|
|
2019-06-02 20:52:51 +00:00
|
|
|
ADD . /src
|
|
|
|
RUN cd /src && go get -d && go build -o godns
|
|
|
|
|
|
|
|
FROM alpine
|
2018-07-01 03:09:52 +00:00
|
|
|
|
|
|
|
MAINTAINER Tyler Stuyfzand <tyler@tystuyfzand.com>
|
|
|
|
|
|
|
|
EXPOSE 53
|
|
|
|
|
|
|
|
RUN apk --no-cache add tini
|
|
|
|
ENTRYPOINT ["/sbin/tini", "-g", "--"]
|
|
|
|
CMD ["godns"]
|
|
|
|
|
2018-08-05 08:48:26 +00:00
|
|
|
COPY etc/godns.example.conf /etc/godns.conf
|
2019-06-02 20:52:51 +00:00
|
|
|
COPY --from=build-env /src/godns /usr/local/bin/godns
|
2018-07-01 03:09:52 +00:00
|
|
|
RUN chmod +x /usr/local/bin/godns
|