2025-03-04 00:04:17 +08:00
|
|
|
FROM almalinux:9 AS installer
|
2023-12-10 16:50:48 +08:00
|
|
|
|
|
|
|
RUN dnf install \
|
|
|
|
--installroot /fakeroot \
|
|
|
|
--releasever 9 \
|
|
|
|
--setopt install_weak_deps=false \
|
|
|
|
--nodocs -y \
|
2023-12-11 10:14:25 +08:00
|
|
|
coreutils-single libstdc++ \
|
2023-12-10 16:50:48 +08:00
|
|
|
&& dnf clean all --installroot /fakeroot
|
2025-03-04 10:18:15 +08:00
|
|
|
RUN curl -L -o hugo.tar.gz "https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_extended_0.145.0_linux-amd64.tar.gz"
|
2025-03-04 00:04:17 +08:00
|
|
|
RUN tar xvf hugo.tar.gz
|
|
|
|
RUN cp hugo /fakeroot/usr/local/bin/hugo
|
2023-12-10 16:50:48 +08:00
|
|
|
|
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=installer /fakeroot /
|