docker-hugo-ext/Dockerfile
Zhao Zuohong 1f948414cb
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
使用coreutils-single
2023-12-11 10:14:25 +08:00

16 lines
444 B
Docker

FROM almalinux:9 as installer
RUN dnf install \
--installroot /fakeroot \
--releasever 9 \
--setopt install_weak_deps=false \
--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
FROM scratch
COPY --from=installer /fakeroot /