From 32688a75a787f96811b4872c2505a46cecaaea3b Mon Sep 17 00:00:00 2001 From: Zhao Zuohong Date: Sun, 10 Dec 2023 16:50:48 +0800 Subject: [PATCH] first commit --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..bc1f0ca --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM almalinux:9 as installer + +RUN dnf install \ + --installroot /fakeroot \ + --releasever 9 \ + --setopt install_weak_deps=false \ + --nodocs -y \ + coreutils \ + && 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 + + +FROM scratch +COPY --from=installer /fakeroot /