16 lines
479 B
Docker
16 lines
479 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 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
|
|
COPY --from=installer /fakeroot /
|