This repository has been archived on 2023-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
2021-04-03 19:39:56 +00:00
|
|
|
FROM golang:1.16-alpine
|
|
|
|
RUN apk add libcap git
|
2021-03-02 22:58:47 +00:00
|
|
|
WORKDIR $GOPATH/src/git.k-space.ee/pinecrypt/goredns
|
2021-04-03 19:39:56 +00:00
|
|
|
COPY go.mod .
|
2021-06-04 07:06:27 +00:00
|
|
|
COPY go.sum .
|
2021-04-03 19:39:56 +00:00
|
|
|
RUN go mod download
|
2021-03-02 22:58:47 +00:00
|
|
|
COPY main.go .
|
2021-04-03 19:39:56 +00:00
|
|
|
RUN go build -o goredns main.go
|
|
|
|
RUN setcap 'cap_net_bind_service=+ep' goredns
|
|
|
|
CMD ["./goredns"]
|