godns/Dockerfile
Tyler 0461badfa7
Some checks failed
continuous-integration/drone/push Build is failing
Ensure git exists
2019-06-02 16:53:50 -04:00

20 lines
405 B
Docker

FROM golang:alpine AS build-env
ADD . /src
RUN apk add --update git
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