Resolve error, only trigger build on master

This commit is contained in:
Tyler
2020-01-25 12:51:20 -05:00
parent 3122096982
commit 991ae3ecb5
4 changed files with 237 additions and 9 deletions

View File

@ -1,9 +1,3 @@
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>
@ -15,5 +9,5 @@ ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD ["godns"]
COPY etc/godns.example.conf /etc/godns.conf
COPY --from=build-env /src/godns /usr/local/bin/godns
COPY /build/godns /usr/local/bin/godns
RUN chmod +x /usr/local/bin/godns