dockerfile: switch to fedora-minimal
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:
surtur 2021-10-21 01:42:13 +02:00
parent ea744cebe5
commit 4bd15e92c8
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D
2 changed files with 7 additions and 6 deletions

@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1.3 # syntax=docker/dockerfile:1.3
FROM registry.fedoraproject.org/fedora:34 FROM registry.fedoraproject.org/fedora-minimal:34
ARG BUILD_DATE ARG BUILD_DATE
ARG VCS_REF ARG VCS_REF
@ -12,9 +12,9 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.license=GPL-3.0 org.label-schema.license=GPL-3.0
RUN printf "[main]\ngpg_check=1\ninstallonly_limit=2\nclean_requirements_on_remove=True\nfastestmirror=True\nmax_parallel_downloads=7\n" > /etc/dnf/dnf.conf; \ RUN printf "[main]\ngpg_check=1\ninstallonly_limit=2\nclean_requirements_on_remove=True\nfastestmirror=True\nmax_parallel_downloads=7\n" > /etc/dnf/dnf.conf; \
cat /etc/dnf/dnf.conf; \ cat /etc/dnf/dnf.conf; \
dnf --refresh upgrade -y microdnf --refresh upgrade -y
RUN dnf install --nodocs -y \ RUN microdnf install --nodocs --setopt install_weak_deps=0 -y \
git \ git \
ninja-build \ ninja-build \
make \ make \
@ -47,7 +47,7 @@ RUN dnf install --nodocs -y \
kernel-devel \ kernel-devel \
ncurses-{c++-libs,devel,libs,static} \ ncurses-{c++-libs,devel,libs,static} \
numactl-{devel,libs} \ numactl-{devel,libs} \
&& dnf clean all -y && microdnf clean all -y
# nDPI will by default (left unchanged) be installed with prefix "/usr/local". # nDPI will by default (left unchanged) be installed with prefix "/usr/local".
# this makes sure the results get picked up in subsequent linkings against it. # this makes sure the results get picked up in subsequent linkings against it.

@ -13,11 +13,12 @@ The image is rebuilt nightly to ensure it always has the latest packages.
development happens on [this Gitea instance](https://git.dotya.ml/wanderer/docker-fedora-cpp) development happens on [this Gitea instance](https://git.dotya.ml/wanderer/docker-fedora-cpp)
## What you get ## What you get
* updated `registry.fedoraproject.org/fedora:34` image * updated `registry.fedoraproject.org/fedora-minimal:34` image
* the result of * the result of
```sh ```sh
dnf install -y \ dnf install -y \
git \ git \
ninja-build \
make \ make \
{c,auto}make \ {c,auto}make \
gcc \ gcc \