gittuf
Source
FROM stagex/pallet-cgo AS build
ARG VERSION
ADD fetch/gittuf-v${VERSION}.tar.gz .
WORKDIR /gittuf-${VERSION}
RUN go mod download
RUN --network=none <<-EOF
go build \
-trimpath \
-o gittuf \
-v \
-ldflags="-s -w" \
.
mkdir -p /rootfs/usr/bin/
install -vDm755 -t /rootfs/usr/bin gittuf
install -vDm644 -t /rootfs/usr/share/licenses/gittuf LICENSE
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs /Copied to clipboard!