Updated build environment for drone

This commit is contained in:
Tyler
2019-06-02 16:52:51 -04:00
parent 2b1dfb247a
commit 1017553f08
5 changed files with 74 additions and 38 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM golang:alpine AS build-env
ADD . /src
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