# syntax=docker/dockerfile:1 ARG GO_VERSION=1.21.7 FROM golang:${GO_VERSION}-alpine AS generated ENV GOTOOLCHAIN=local RUN go install github.com/dmcgowan/quicktls@master WORKDIR /tmp/gencerts/notary RUN --mount=type=bind,source=e2e/testdata/notary,target=/tmp/gencerts/notary,rw <> notary-server.cert mv ca.pem root-ca.cert cp notary-server.cert notary-server.key root-ca.cert ../notary-evil cp -r /tmp/gencerts/notary* /out/ EOT FROM scratch COPY --from=generated /out /