apatel762 / home-infra

A repository containing all of the setup for my home infra (e.g. my laptop & soon, my server)
GNU Affero General Public License v3.0
0 stars 0 forks source link

Include RPM fusion repos in toolbox container #95

Closed apatel762 closed 2 years ago

apatel762 commented 2 years ago

This is so that I can install ffmpeg and ffprobe in the container

Should be as simple as adding the below snippet in the Containerfile before we install packages:

RUN dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-${FEDORA_VERSION}.noarch.rpm \
    && dnf -y install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-${FEDORA_VERSION}.noarch.rpm
apatel762 commented 2 years ago

was running into issues, but apparently you can share args between build stages (i.e. before and after FROM statements), now it works.

https://stackoverflow.com/questions/53681522/share-variable-in-multi-stage-dockerfile-arg-before-from-not-substituted