Gitlab CI!

This commit is contained in:
Tyler
2018-06-30 23:09:52 -04:00
parent a6f6c4e96d
commit 63ce0cde19
4 changed files with 97 additions and 0 deletions

19
docker/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM golang:alpine as build
RUN apk --no-cache add git; \
go get github.com/kenshinx/godns; \
cd $GOPATH/src/github.com/kenshinx/godns; \
go build -o /godns
FROM alpine:3.7
MAINTAINER Tyler Stuyfzand <tyler@tystuyfzand.com>
EXPOSE 53
RUN apk --no-cache add tini
ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD ["godns"]
COPY --from=build /godns /usr/local/bin/godns
RUN chmod +x /usr/local/bin/godns