lazygit

Source

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