直接从GitHub Release下载
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
zhbaor 2025-03-04 00:04:17 +08:00
parent 59a01861e4
commit 4b3e5b9ac7

View file

@ -1,4 +1,4 @@
FROM almalinux:9 as installer
FROM almalinux:9 AS installer
RUN dnf install \
--installroot /fakeroot \
@ -7,9 +7,9 @@ RUN dnf install \
--nodocs -y \
coreutils-single libstdc++ \
&& dnf clean all --installroot /fakeroot
RUN dnf -y install g++ golang
RUN CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
RUN cp /root/go/bin/hugo /fakeroot/usr/local/bin/hugo
RUN curl -L -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v0.131.0/hugo_extended_0.131.0_linux-amd64.tar.gz"
RUN tar xvf hugo.tar.gz
RUN cp hugo /fakeroot/usr/local/bin/hugo
FROM scratch