# Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
# SPDX-License-Identifier: GPL-2.0-or-later

ARG IMAGE=registry.fedoraproject.org/fedora:latest

FROM ${IMAGE}

RUN set -euo pipefail ;\
    dnf-3 install --disablerepo=\*-modular --disablerepo=fedora-cisco-openh264 -y \
        dnf-plugins-core ;\
    dnf-3 copr enable -y gotmax23/fedrq ;\
    dnf-3 install --disablerepo=\*-modular --disablerepo=fedora-cisco-openh264 -y \
        fedrq ;\
    dnf-3 clean all ;

COPY 000-container.toml /etc/fedrq/000-container.toml

RUN fedrq check-config

ENV XDG_CACHE_HOME=/fedrq-cache
ENTRYPOINT ["/usr/bin/fedrq"]
CMD ["--help"]
VOLUME /fedrq-cache
