godns/docker/Dockerfile.arm

24 lines
474 B
Docker
Raw Normal View History

2018-07-01 03:09:52 +00:00
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
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