FROM docker.io/golang:1.21-alpine3.19 AS builder ADD md2gmi.go /md2gmi.go RUN go build -o /md2gmi /md2gmi.go FROM scratch COPY --from=builder /md2gmi /md2gmi ENTRYPOINT ["/md2gmi"] CMD ["${INPUT_DIR}", "${OUTPUT_DIR}"]