dockerfile: switch to fedora-minimal
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
* source the image from fedoraproject's container repository * edit Dockerfile to use microdnf as dnf is unavailable in -minimal images * instruct microdnf to not install weak deps or docs * update image info in README.md
This commit is contained in:
parent
c4921033f9
commit
f84c016be7
10
Dockerfile
10
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM fedora:34
|
||||
FROM registry.fedoraproject.org/fedora-minimal:34
|
||||
|
||||
ENV HUGO_VERSION 0.82.1
|
||||
|
||||
@ -15,14 +15,14 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
||||
ADD https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz /tmp/hugo.tar.gz
|
||||
|
||||
WORKDIR /tmp/
|
||||
RUN dnf --refresh upgrade -y && dnf install -y git findutils
|
||||
RUN tar xfv /tmp/hugo.tar.gz && rm -fv /tmp/hugo.tar.gz README.md LICENSE \
|
||||
RUN microdnf --refresh upgrade -y && microdnf install -y bsdtar git findutils \
|
||||
--nodocs --setopt install_weak_deps=0
|
||||
RUN bsdtar xfv /tmp/hugo.tar.gz && rm -fv /tmp/hugo.tar.gz README.md LICENSE \
|
||||
&& chmod +x /tmp/hugo \
|
||||
&& mkdir -pv /usr/local/bin \
|
||||
&& mv -v /tmp/hugo /usr/local/bin/ \
|
||||
&& rm -rfv /tmp/*
|
||||
RUN dnf autoremove -y -x findutils \
|
||||
&& dnf clean all -y
|
||||
RUN microdnf clean all -y
|
||||
RUN rm -rf /usr/share/zoneinfo/* ; rm -rf /usr/include/* ; \
|
||||
find /. -name "*~" -type f -delete; \
|
||||
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete
|
||||
|
@ -13,7 +13,7 @@ push mirror lives in [this GitHub repo](https://github.com/wULLSnpAXbWZGYDYyhWTK
|
||||
development happens on [this Gitea instance](https://git.dotya.ml/wanderer/docker-fedora-hugo)
|
||||
|
||||
## What you get
|
||||
* updated `fedora:33` image
|
||||
* updated `registry.fedoraproject.org/fedora-minimal:34` image
|
||||
* git
|
||||
* hugo-extended (latest version from [GitHub](https://github.com/gohugoio/hugo/releases))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user