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