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
ea744cebe5
commit
4bd15e92c8
@ -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
|
||||||
@ -13,8 +13,8 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
|
|||||||
|
|
||||||
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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user