FROM golang:alpine AS build WORKDIR /build COPY [ "go.mod", "go.sum", "./"] COPY internal ./internal COPY cmd ./cmd RUN go build -o cooldns cmd/cooldns.go FROM alpine:latest WORKDIR /app COPY --from=build /build/cooldns . ENTRYPOINT ["/app/cooldns"]