feat: bump base image fedora version to 33
* plus some Dockerfile refactoring
This commit is contained in:
parent
c6b58d5483
commit
32ba351c35
10
Dockerfile
10
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM fedora:32
|
||||
FROM fedora:33
|
||||
|
||||
ENV HUGO_VERSION 0.76.5
|
||||
|
||||
@ -15,15 +15,15 @@ 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 && dnf autoremove -y
|
||||
RUN dnf --refresh upgrade -y && dnf install -y git findutils && dnf autoremove -y
|
||||
RUN tar xfv /tmp/hugo.tar.gz && rm -v /tmp/hugo.tar.gz README.md LICENSE \
|
||||
&& chmod +x /tmp/hugo \
|
||||
&& mkdir -pv /usr/local/bin \
|
||||
&& mv -v /tmp/hugo /usr/local/bin/
|
||||
RUN dnf clean all -y \
|
||||
&& rm -rv /usr/share/zoneinfo/* ; \
|
||||
rm -rv /usr/share/i18n/* ;rm -rv /usr/include/* ; \
|
||||
&& rm -rv /usr/share/zoneinfo/* ; rm -rv /usr/include/* ; \
|
||||
find /. -name "*~" -type f -delete; \
|
||||
find /usr/share/terminfo/. ! -name "*xterm*" ! -name "*screen*" ! -name "*screen*" -type f -delete; \
|
||||
rm -rv /tmp/* || true
|
||||
rm -rv /tmp/* ; \
|
||||
dnf autoremove -y findutils; dnf clean all -y || true
|
||||
WORKDIR /
|
||||
|
@ -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:32` image
|
||||
* updated `fedora:33` image
|
||||
* git
|
||||
* hugo-extended (latest version from [GitHub](https://github.com/gohugoio/hugo/releases))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user