Gitlab CI!
This commit is contained in:
19
docker/Dockerfile
Normal file
19
docker/Dockerfile
Normal 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
|
23
docker/Dockerfile.arm
Normal file
23
docker/Dockerfile.arm
Normal file
@ -0,0 +1,23 @@
|
||||
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
|
23
docker/Dockerfile.arm64
Normal file
23
docker/Dockerfile.arm64
Normal file
@ -0,0 +1,23 @@
|
||||
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
|
||||
|
||||
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
|
Reference in New Issue
Block a user