mirror of
https://github.com/folbricht/routedns.git
synced 2026-05-12 19:53:58 -05:00
14 lines
331 B
Docker
14 lines
331 B
Docker
FROM golang:alpine as builder
|
|
|
|
WORKDIR /build
|
|
COPY . .
|
|
WORKDIR cmd/routedns
|
|
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build
|
|
|
|
FROM alpine:latest
|
|
COPY --from=builder /build/cmd/routedns/routedns .
|
|
COPY cmd/routedns/example-config/simple-dot-proxy.toml config.toml
|
|
EXPOSE 53/tcp 53/udp
|
|
ENTRYPOINT ["/routedns"]
|
|
CMD ["config.toml"]
|