FROM almalinux:9

# yours goes here
MAINTAINER pryorm09@gmail.com

# set your Squid proxy
RUN echo 'proxy=http://192.168.1.45:3128' >> /etc/dnf/dnf.conf

RUN echo 'tsflags=nodocs' >> /etc/dnf/dnf.conf
# TERM is to make the tito work in container, rhbz#1733043
ENV TERM=linux
ENV LANG=en_US.UTF-8
ENV REDIS_HOST=redis

RUN dnf -y install dnf-plugins-core
# && dnf -y copr enable @copr/copr || exit 0
# wget nano epel-release glibc-common
#RUN dnf -y copr enable @copr/copr
RUN dnf config-manager --set-enabled crb
RUN dnf -y install wget nano epel-release glibc-common glibc-locale-source

RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8
ENV export LC_ALL=en_US.UTF-8

#
# 2 private repositories, huge amount of build requires,
#  not found in Epel9 or Almalinux9 as of June 2022
#
RUN pushd /etc/yum.repos.d/ && wget http://199.249.188.45/stream9/virt-stream9.repo && \
 wget http://199.249.188.45/copr9/virt-copr9.repo && \
 popd

RUN dnf -y install prename tree zstd

RUN echo 'nameserver 8.8.8.8' | tee -a /etc/resolv.conf

# base packages, refresh package cache (must)
RUN dnf makecache && \  
    dnf -y update && \
    dnf -y install  mock-core-configs && \
    dnf clean all

