From 4b3e5b9ac72a6231f258e41dfd87c5456099986d Mon Sep 17 00:00:00 2001 From: zhbaor Date: Tue, 4 Mar 2025 00:04:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E4=BB=8EGitHub=20Release?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 606acb8..8aa512f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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