first commit
This commit is contained in:
commit
32688a75a7
1 changed files with 16 additions and 0 deletions
16
Dockerfile
Normal file
16
Dockerfile
Normal file
|
@ -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 /
|
Loading…
Reference in a new issue