Apply dnf configuration at start of build
This commit is contained in:
parent
0c15f5de43
commit
52d8af5154
2 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
|||
FROM quay.io/fedora-ostree-desktops/silverblue:41
|
||||
|
||||
# dnf configuration has to be in effect during build
|
||||
COPY etc/dnf /etc/dnf
|
||||
|
||||
# Add rpmfusion repositories (this sometimes fails, so it has 3 tries before failing the build)
|
||||
RUN (dnf5 -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm) || \
|
||||
(sleep 60 && dnf5 -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm) || \
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
FROM quay.io/fedora-ostree-desktops/kinoite:41
|
||||
|
||||
# dnf configuration has to be in effect during build
|
||||
COPY etc/dnf /etc/dnf
|
||||
|
||||
# Add rpmfusion repositories (this sometimes fails, so it has 3 tries before failing the build)
|
||||
RUN (dnf5 -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm) || \
|
||||
(sleep 60 && dnf5 -y install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm) || \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue