# 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 ;\
    dnf5 install --disablerepo=fedora-cisco-openh264 -y \
        dnf5-plugins ;\
    dnf5 copr enable -y gotmax23/fedrq ;\
    dnf5 install --disablerepo=fedora-cisco-openh264 -y \
        fedrq ;\
    dnf5 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
