Let there be BUILDS
This commit is contained in:
@ -1,10 +1,3 @@
|
||||
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>
|
||||
@ -15,5 +8,5 @@ RUN apk --no-cache add tini
|
||||
ENTRYPOINT ["/sbin/tini", "-g", "--"]
|
||||
CMD ["godns"]
|
||||
|
||||
COPY --from=build /godns /usr/local/bin/godns
|
||||
COPY /godns /usr/local/bin/godns
|
||||
RUN chmod +x /usr/local/bin/godns
|
||||
|
Reference in New Issue
Block a user