FROM golang:1.23-alpine AS builder COPY . /workspace WORKDIR /workspace RUN go build -ldflags "-s -w" . FROM alpine:latest COPY --from=builder /workspace/dns /usr/local/bin/dns WORKDIR /dns ENTRYPOINT [ "/usr/local/bin/dns" ]