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.
goredns/Dockerfile

11 lines
259 B
Docker

FROM golang:1.16-alpine
RUN apk add libcap git
WORKDIR $GOPATH/src/git.k-space.ee/pinecrypt/goredns
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY main.go .
RUN go build -o goredns main.go
RUN setcap 'cap_net_bind_service=+ep' goredns
CMD ["./goredns"]