Let there be BUILDS

This commit is contained in:
Tyler
2018-06-30 23:16:46 -04:00
parent 63ce0cde19
commit 7f876659db
4 changed files with 46 additions and 34 deletions

View File

@ -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

View File

@ -1,12 +1,3 @@
FROM golang:alpine as build
ENV GOARCH=arm
RUN apk --no-cache add git; \
go get github.com/kenshinx/godns; \
cd $GOPATH/src/github.com/kenshinx/godns; \
go build -o /godns
FROM arm32v6/alpine
COPY tmp/qemu-arm-static /usr/bin/qemu-arm-static
@ -19,5 +10,5 @@ RUN apk --no-cache add tini
ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD ["godns"]
COPY --from=build /godns /usr/local/bin/godns
COPY /godns-arm /usr/local/bin/godns
RUN chmod +x /usr/local/bin/godns

View File

@ -1,12 +1,3 @@
FROM golang:alpine as build
ENV GOARCH=arm64
RUN apk --no-cache add git; \
go get github.com/kenshinx/godns; \
cd $GOPATH/src/github.com/kenshinx/godns; \
go build -o /godns
FROM arm64v8/alpine
COPY tmp/qemu-aarch64-static /usr/bin/qemu-aarch64-static
@ -19,5 +10,5 @@ RUN apk --no-cache add tini
ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD ["godns"]
COPY --from=build /godns /usr/local/bin/godns
COPY /godns-arm64 /usr/local/bin/godns
RUN chmod +x /usr/local/bin/godns