...

Text file src/github.com/cpuguy83/go-md2man/v2/Dockerfile

Documentation: github.com/cpuguy83/go-md2man/v2

     1ARG GO_VERSION=1.21
     2
     3FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION} AS build
     4COPY . /go/src/github.com/cpuguy83/go-md2man
     5WORKDIR /go/src/github.com/cpuguy83/go-md2man
     6ARG TARGETOS TARGETARCH TARGETVARIANT
     7RUN \
     8    --mount=type=cache,target=/go/pkg/mod \
     9    --mount=type=cache,target=/root/.cache/go-build \
    10    make build
    11
    12FROM scratch
    13COPY --from=build /go/src/github.com/cpuguy83/go-md2man/bin/go-md2man /go-md2man
    14ENTRYPOINT ["/go-md2man"]

View as plain text