...

Text file src/github.com/in-toto/in-toto-golang/Dockerfile

Documentation: github.com/in-toto/in-toto-golang

     1ARG GO_VERSION=1.17
     2
     3FROM golang:${GO_VERSION}-alpine as build
     4
     5RUN apk --no-cache add make
     6WORKDIR /src
     7COPY go.mod go.sum /src/
     8RUN go mod download
     9COPY . /src/
    10RUN make build
    11
    12FROM gcr.io/distroless/base:debug AS debug
    13COPY --from=build /src/bin/in-toto /bin/in-toto
    14ENTRYPOINT [ "/bin/in-toto" ]
    15
    16FROM gcr.io/distroless/base
    17COPY --from=build /src/bin/in-toto /bin/in-toto
    18ENTRYPOINT [ "/bin/in-toto" ]

View as plain text